Confirmed users
180
edits
Line 38: | Line 38: | ||
typedef enum { | typedef enum { | ||
NPImageFormatARGB32 = 0x1, | /* each pixel is a 32-bit quantity, with | ||
* alpha in the upper 8 bits, then red, then green, then blue. | |||
* The 32-bit quantities are stored native-endian. Pre-multiplied | |||
* alpha is used. (That is, 50% transparent red is 0x80800000, | |||
* not 0x80ff0000.) */ | |||
NPImageFormatARGB32 = 0x1, | |||
/* each pixel is a 32-bit quantity, with | |||
* the upper 8 bits unused. Red, Green, and Blue are stored | |||
* in the remaining 24 bits in that order. */ | |||
NPImageFormatRGB24 = 0x2, /* x8r8g8b8 */ | NPImageFormatRGB24 = 0x2, /* x8r8g8b8 */ | ||
NPImageFormatRGB16_565 = 0x4 /* r5g6b5 */ | NPImageFormatRGB16_565 = 0x4 /* r5g6b5 */ | ||
/* can be extended */ | /* can be extended */ |