|
Size: 966
Comment:
|
Size: 1324
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 10: | Line 10: |
| ||[[SDL_Palette]]*||'''palette'''|| ||Uint8||'''Bits``Per``Pixel'''|| ||Uint8||'''Bytes``Per``Pixel'''|| |
||[[SDL_Palette]]*||'''palette'''||a palette associated with this pixel format|| ||Uint8||'''Bits``Per``Pixel'''||the number of significant bits in a pixel value, eg: 8, 15, 16, 24, 32|| ||Uint8||'''Bytes``Per``Pixel'''||the number of bytes required to hold a pixel value, eg: 1, 2, 3, 4|| |
| Line 35: | Line 35: |
| The data types used to represent pixels are as follows: ||__Bytes Per Pixel__||__Type__|| ||1||Uint8|| ||2||Uint16|| ||3||couple of Uint8 RGB values|| ||4||Uint32|| |
SDL_PixelFormat
A structure that contains pixel format information.
Data Fields
palette |
a palette associated with this pixel format |
|
Uint8 |
BitsPerPixel |
the number of significant bits in a pixel value, eg: 8, 15, 16, 24, 32 |
Uint8 |
BytesPerPixel |
the number of bytes required to hold a pixel value, eg: 1, 2, 3, 4 |
Uint8 |
Rloss |
|
Uint8 |
Gloss |
|
Uint8 |
Bloss |
|
Uint8 |
Aloss |
|
Uint8 |
Rshift |
|
Uint8 |
Gshift |
|
Uint8 |
Bshift |
|
Uint8 |
Bshift |
|
Uint8 |
Ashift |
|
Uint32 |
Rmask |
|
Uint32 |
Gmask |
|
Uint32 |
Bmask |
|
Uint32 |
Amask |
Code Examples
You can add your code example here
Remarks
Everything in the pixel format structure is read-only.
The data types used to represent pixels are as follows:
Bytes Per Pixel |
Type |
1 |
Uint8 |
2 |
Uint16 |
3 |
couple of Uint8 RGB values |
4 |
Uint32 |
Related Structures
