Anyone got a nice little CopyRect type of function

BlitzMax Forums/BlitzMax Programming/Anyone got a nice little CopyRect type of function

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.

Can't you use SetUv or pixmapwindow?
Graphics 640,480
mypixmap:TPixmap=LoadPixmap("max.png")
mypixmaprect:TPixmap=PixmapWindow(mypixmap,20,20,100,100)
DrawPixmap mypixmap,0,0
DrawPixmap mypixmaprect,200,0

Flip
WaitKey()