|
|
|
|
Functions
MioScript Reference
|
|
Syntax
| draw.ID.pixelFormat(PixelFormat) |
Parameters
| INT | PixelFormat | Number of bytes per pixel (1, 4, 8, 15, 16, 24 or 32) |
Return value
No value is returned.
Description
Set the bitmap pixel format (number of byte per pixel).
If you set the pixel format to a high value, the size of the bitmap in the memory is higher and the rendering is slower.
If the pixel format is set to 1, the bitmap is limited to 2 colors.
If the pixel format is set to 8, the bitmap is limited to 16 colors.
Etc...
The minimum pixel format to render images is 15 or 16 bytes per pixel.
The recommended value if 24 bytes for static images and 16 bytes for animations. |
MioScript Sample Code
draw.main.pixelFormat(24) |
|
|
|