Depends on the size of the block you allocated using createimage. Use createimage to set the size you want - then grabimage to get the image at the x/y position.
If you want a dynamically change the size of the grab, then the only way I can see how you'd use it is to delete the image - before creating a new one.
Drawimage will blast the entire image onto the screen. I'm using the setviewport command to get it to display a certain area of my image. Not a wonderful hack - but fast enough for my needs.
If you want a dynamically change the size of the grab, then the only way I can see how you'd use it is to delete the image - before creating a new one.
Drawimage will blast the entire image onto the screen. I'm using the setviewport command to get it to display a certain area of my image. Not a wonderful hack - but fast enough for my needs.