Encapsulates SDL_PixelFormat structure.
class SDLPixelFormat
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 |
Encapsulates SDL_PixelFormat structure.
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.
Alpha loss factor
Alpha bitfield mask
Alpha shift factor
Number of bits per pixel of this image
Blue loss factor
Blue bitfield mask
Blue shift factor
Number of bytes per pixel of this image
Green loss factor
Green bitfield mask
Green shift factor
Red loss factor
Red bitfield mask
Red shift factor
Overall image Alpha value
Pixel value of transparent pixels
May be nil or may be an instance of if this surface has a palette