Tweet 2d blitzmax graphics-pixmaps command
(Posted 2 years ago) markcwm

CreatePixmap:TPixmap( width,height,format,align_bytes=4 )


Create a pixmap


A new pixmap object of the specified width and height


format should be one of the following:

Format Description
PF_A8 8 bit alpha
PF_I8 8 bit intensity
PF_RGB888 24 bit big endian RGB
PF_BGR888 24 bit little endian RGB
PF_RGBA8888 32 bit big endian RGB with alpha
PF_BGRA8888 32 bit little endian RGB with alpha

Note that the newly created pixmap will contain random data. ClearPixels can be used to set all pixels to a known value prior to use.

Reply To Topic (minimum 10 characters)

Please log in to reply