Home
Products
Community
Manuals
Contact
Login or Signup

BlitzMax Docs -> 2D - Category -> Graphics - Pixmaps -> PixmapWindow

PixmapWindow:TPixmap( pixmap:TPixmap,x,y,width,height )

Returns:

A new pixmap object

Description:

Create a pixmap window

PixmapWindow creates a 'virtual' window into pixmap.


Comments

slenkar(Posted 1+ years ago)
What does this mean?


simonh(Posted 1+ years ago)
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.


TAS(Posted 2 months ago)
'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