BlitzMax Docs -> 2D - Category -> Graphics - Pixmaps -> PixmapWindow
PixmapWindow:TPixmap( pixmap:TPixmap,x,y,width,height )
Returns:
A new pixmap objectDescription:
Create a pixmap windowPixmapWindow creates a 'virtual' window into pixmap.
Comments
| ||
| 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




