AbidingDude
Programmer
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().
"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().