[Top]
SDL
SDL.PixelFormat
|
Class SDL.PixelFormat
- Description
-
This describes the format of the pixel data stored at the pixels field
of a SDL.Surface . Every surface stores a PixelFormat in the format
field.
- Variable
bits_per_pixel
-
int bits_per_pixel
- Description
-
The number of bits used to represent each pixel in a
surface. Usually 8, 16, 24 or 32.
- Variable
bytes_per_pixel
-
int bytes_per_pixel
- Description
-
The number of bytes used to represent each pixel in a
surface. Usually one to four.
-
int rmask
int gmask
int bmask
int amask
- Description
-
Binary mask used to retrieve individual color values.
-
int rloss
int gloss
int bloss
int aloss
- Description
-
Precision loss of each color component.
-
int rshift
int gshift
int bshift
int ashift
- Description
-
Binary left shift of each color component in the pixel value.
- Variable
colorkey
-
int colorkey
- Description
-
Pixel value of transparent pixels.
- Variable
alpha
-
int alpha
- Description
-
Overall surface alpha value.
|