Copy a region out of a Pixmap

BlitzMax Forums/BlitzMax Beginners Area/Copy a region out of a Pixmap

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.

Hello!

Another newb question from me:

If a pixmap I have loaded up is wider than 340 pixels
I want the pixmap being replaced by the first 0-340 pixels.
So the new pixmap is only 340 in width of the original larger image. No resizing. Just simple "copy" out.

tmppixmap=LoadPixmap("MyLargeImage.jpg")
If tmppixmap.width > 340 Then
tmppixmap=tmppixmap.copy ...????
endif

How can I do this?

Thanks, Grisu