PixmapWindow:TPixmap( pixmap:TPixmap,x,y,width,height )
Returns:A new pixmap object
Description:Create a pixmap window
| What does this mean? |
| It allows you to divide a pixmap up into smaller pixmaps.|
However, the pixmap that is returned is only a reference, not a copy - so if you alter the returned pixmap, the original pixmap will be altered too.
This commmand is useful for when you wish to use individual portions of a pixmap only - for example, when creating individual images or textures from a big image that contains several smaller images.
| 'Found this in the code archives somewhere? |
PixmapWindow can be used to use to copy part of a pixmap to another image (or pixmap)
img:timage = LoadImage(PixmapWindow(p:pixmap,x,y,w,h))
BlitzMax Manual Forum
Blitz3D Equivalent Command