PixelFormat
Since: BlackBerry 10.0.0
#include <bb/PixelFormat>
To link against this class, add the following line to your .pro file: LIBS += -lbb
An enumeration of the possible formats for the pixels of an ImageData object.
unsigned char *pPixels; pPixels[0] = 0x60; // red pPixels[1] = 0x30; // green pPixels[2] = 0xE0; // blue pPixels += 4; // skip to next pixel
unsigned char *pPixels; pPixels[0] = (0x60*0x80)>>8; // premultiplied red pPixels[1] = (0x30*0x80)>>8; // premultiplied green pPixels[2] = (0xE0*0x80)>>8; // premultiplied blue pPixels[3] = 0x80; // alpha pPixels += 4; // skip to next pixel
Overview
Public Types Index
enum TypeRGBX 0, RGBA_Premultiplied 1 |
Public Types
An enumeration of the possible formats for the pixels of an ImageData object.
BlackBerry 10.0.0
- RGBX 0
32 bits per pixel, with Red Green Blue each 0-255 then a skipped byte.
- RGBA_Premultiplied 1
32 bits per pixel, with Red Green Blue Alpha each 0-255 where RGB is premultiplied by Alpha.
Since:BlackBerry 10.0.0