Solved

VESA/MODE 12h Graphics

Posted on 1997-08-07
2
469 Views
Last Modified: 2012-08-13
Help! Is there an easier way of programming 640x480x16/640x480x256 graphics then unchaining
the bitplanes? It means that working in 16 bits is extremely fiddly and it's so SLOW, even when written in BASM.
Perhaps DMAs might help!?
0
Comment
Question by:DaveJ080797
2 Comments
 
LVL 4

Accepted Solution

by:
nils pipenbrinck earned 200 total points
ID: 1215403
No,

Since you work in a realmode enviroment you have no chances to use the new linear frame buffer function of new vga-cards.

The only option you have is to use VESA. Ther're a lot of good vesa libraries on the net, and I'm sure you'll be able to find one.

Basically the only thing you have to do is, to set the graphic mode. If you want to access your frame-buffer you have to do some math:

 for 640x480x256 your image is 307200 bytes in size.

the video segment 0xa000 is only 64k in size. If you know want to access any part of the video memory above the first 64k you have to tell the vesa to use another bank of the video memory. (a simple call or interrupt.. whatever you prefear).

Vesa isn't that slow.. If your graphic is to slow it's your code, not the vesa-stuff.


Hope this helps you...

  Nils Pipenbrinck

0
 

Author Comment

by:DaveJ080797
ID: 1215404
Dave's brother liked the answer anyway.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with If Then Statement 8 327
SetWindowsHookEx capturing unicode (universal) characters ? 1 1,813
Delphi TDBX too many connection problem 2 1,165
ddeman not working in activex 3 113
This article explains the steps required to use the default Photos screensaver to display branding/corporate images
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question