CreatePixmap


(Posted 1 year ago) markcwm

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

Description:

Create a pixmap

Returns:

A new pixmap object of the specified width and height

Information:

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

Please log in to reply