Omni
|
you should use malloc() to define the size of the image, like this:
imagepointer = malloc(480000)
where 480000 = 800(the screen width) * 400(the screen height) * 1(the color depth in bytes---8-bit color, or 1 byte. 16 bit is 2 bytes.)
Then you should GrabRegion() to grab the screen. For example,
imagepointer = GrabRegion(0 , 0, screenx-1, screeny-1)
I think that's right. I did "-1" because the 0 is inclusive...0 (1 pixel) + 799 = 800 pixels. Or something, it's in the VergeC Function List/Readme at the Vergesource.com.
then you can play with imagepointer like any other image.
TCopySprite(0, 0, blah, blah, imagepointer);
the only difference is that you don't have to use LoadImage() cause it's already in memory.
It is not wrong to not understand, for we are all ignorant, but neither is understanding pointless.
Come visit www.verge-net.com!
Posted on 2002-07-13 09:01:03
|