[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 SDL.PixelFormat.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 SDL.PixelFormat.bytes_per_pixel
- Description
The number of bytes used to represent each pixel in a
surface. Usually one to four.
int SDL.PixelFormat.rmask
int SDL.PixelFormat.gmask
int SDL.PixelFormat.bmask
int SDL.PixelFormat.amask
- Description
Binary mask used to retrieve individual color values.
int SDL.PixelFormat.rloss
int SDL.PixelFormat.gloss
int SDL.PixelFormat.bloss
int SDL.PixelFormat.aloss
- Description
Precision loss of each color component.
int SDL.PixelFormat.rshift
int SDL.PixelFormat.gshift
int SDL.PixelFormat.bshift
int SDL.PixelFormat.ashift
- Description
Binary left shift of each color component in the pixel value.
- Variable
colorkey
int SDL.PixelFormat.colorkey
- Description
Pixel value of transparent pixels.
- Variable
alpha
int SDL.PixelFormat.alpha
- Description
Overall surface alpha value.
|