COPYRECT in blitzmax ??

BlitzMax Forums/BlitzMax Programming/COPYRECT in blitzmax ??

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

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.