Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Borland BGI getimage() Details

Status
Not open for further replies.

AbidingDude

Programmer
Oct 7, 2012
74
US
Hello, does anyone know how the BGI function getimage() stores the image to memory? The help file says:

"void far getimage(int left, int top, int right, int bottom, void far *bitmap);

getimage copies an image from the screen to memory.
left, top, right, and bottom define the screen area to which the rectangle is copied. bitmap points to the area in memory where the bit image is stored. The first two words of
this area are used for the width and height of the rectangle; the remainder holds the image itself."


But it never describes how it writes to memory. I've tried looking at the raw data but couldn't figure anything significant out.

I'd like to be able to display bitmaps, but so far the only way I can would be to draw them to the screen first, then sequentially copy them using getimage().
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top