18.10Class SDLPixelFormat

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.

Properties

Aloss

Alpha loss factor.

Alpha loss factor.

Amask

Alpha bitfield mask.

Alpha bitfield mask.

Ashift

Alpha shift factor.

Alpha shift factor.

BitsPerPixel

Number of bits per pixel of this image.

Number of bits per pixel of this image.

Bloss

Blue loss factor.

Blue loss factor.

Bmask

Blue bitfield mask.

Blue bitfield mask.

Bshift

Blue shift factor.

Blue shift factor.

BytesPerPixel

Number of bytes per pixel of this image.

Number of bytes per pixel of this image.

Gloss

Green loss factor.

Green loss factor.

Gmask

Green bitfield mask.

Green bitfield mask.

Gshift

Green shift factor.

Green shift factor.

Rloss

Red loss factor.

Red loss factor.

Rmask

Red bitfield mask.

Red bitfield mask.

Rshift

Red shift factor.

Red shift factor.

alpha

Overall image Alpha value.

Overall image Alpha value.

colorkey

Pixel value of transparent pixels.

Pixel value of transparent pixels.

palette

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.

Made with http://www.falconpl.org