Encapsulates SDL_PixelFormat structure.
Class SDLPixelFormat
This class stores the SDL_PixelFormat structure. Scripts don't usually want to use this, but it may be useful to determine and set color data for palette based images.
Properties | |
Aloss | Alpha loss factor. |
Amask | Alpha bitfield mask. |
Ashift | Alpha shift factor. |
BitsPerPixel | Number of bits per pixel of this image. |
Bloss | Blue loss factor. |
Bmask | Blue bitfield mask. |
Bshift | Blue shift factor. |
BytesPerPixel | Number of bytes per pixel of this image. |
Gloss | Green loss factor. |
Gmask | Green bitfield mask. |
Gshift | Green shift factor. |
Rloss | Red loss factor. |
Rmask | Red bitfield mask. |
Rshift | Red shift factor. |
alpha | Overall image Alpha value. |
colorkey | Pixel value of transparent pixels. |
palette | May be nil or may be an instance of if this surface has a palette. |
Alpha loss factor.
Alpha loss factor.
Alpha bitfield mask.
Alpha bitfield mask.
Alpha shift factor.
Alpha shift factor.
Number of bits per pixel of this image.
Number of bits per pixel of this image.
Blue loss factor.
Blue loss factor.
Blue bitfield mask.
Blue bitfield mask.
Blue shift factor.
Blue shift factor.
Number of bytes per pixel of this image.
Number of bytes per pixel of this image.
Green loss factor.
Green loss factor.
Green bitfield mask.
Green bitfield mask.
Green shift factor.
Green shift factor.
Red loss factor.
Red loss factor.
Red bitfield mask.
Red bitfield mask.
Red shift factor.
Red shift factor.
Overall image Alpha value.
Overall image Alpha value.
Pixel value of transparent pixels.
Pixel value of transparent pixels.
May be nil or may be an instance of if this surface has a palette.
May be nil or may be an instance of SDLPalette if this surface has a palette.