Confirmed users, Bureaucrats and Sysops emeriti
1,680
edits
Line 44: | Line 44: | ||
* not 0x80ff0000.) */ | * not 0x80ff0000.) */ | ||
NPImageFormatARGB32 = 0x1, | NPImageFormatARGB32 = 0x1, | ||
/* each pixel is a 32-bit quantity, with | /* each pixel is a 32-bit quantity, with | ||
* the upper 8 bits unused. Red, Green, and Blue are stored | * the upper 8 bits unused. Red, Green, and Blue are stored | ||
* in the remaining 24 bits in that order. */ | * 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 */ | ||
} NPImageFormat; | } NPImageFormat; | ||
typedef struct _NPImageData | typedef struct _NPImageData | ||
{ | { |