sdl Reference Manual

Synopsis

public class PixelFormat {
    public    Palette                   palette ;
    public    uchar                     BitsPerPixel ;
    public    uchar                     BytesPerPixel ;
    public    uchar                     Rloss ;
    public    uchar                     Gloss ;
    public    uchar                     Bloss ;
    public    uchar                     Aloss ;
    public    uchar                     Rshift ;
    public    uchar                     Gshift ;
    public    uchar                     Bshift ;
    public    uchar                     Ashift ;
    public    uchar                     Rmask ;
    public    uchar                     Gmask ;
    public    uchar                     Bmask ;
    public    uchar                     Amask ;
    public    uint32                    colorkey ;
    public    uchar                     alpha ;


    public    uint32                    map_rgb                   ( uchar               r,
                                                                    uchar               g,
                                                                    uchar               b ) ;
    public    uint32                    map_rgba                  ( uchar               r,
                                                                    uchar               g,
                                                                    uchar               b,
                                                                    uchar               a ) ;
    public    static void               get_rgb                   ( uint32              pixel,
                                                                    PixelFormat         fmt,
                                                                    uchar               r,
                                                                    uchar               g,
                                                                    uchar               b ) ;
    public    static void               get_rgba                  ( uint32              pixel,
                                                                    PixelFormat         fmt,
                                                                    uchar               r,
                                                                    uchar               g,
                                                                    uchar               b,
                                                                    uchar               a ) ;
}

PixelFormat Description

Details

Constructor Details

Field Details

palette
    public    Palette                   palette ;		

BitsPerPixel
    public    uchar                     BitsPerPixel ;		

BytesPerPixel
    public    uchar                     BytesPerPixel ;		

Rloss
    public    uchar                     Rloss ;		

Gloss
    public    uchar                     Gloss ;		

Bloss
    public    uchar                     Bloss ;		

Aloss
    public    uchar                     Aloss ;		

Rshift
    public    uchar                     Rshift ;		

Gshift
    public    uchar                     Gshift ;		

Bshift
    public    uchar                     Bshift ;		

Ashift
    public    uchar                     Ashift ;		

Rmask
    public    uchar                     Rmask ;		

Gmask
    public    uchar                     Gmask ;		

Bmask
    public    uchar                     Bmask ;		

Amask
    public    uchar                     Amask ;		

colorkey
    public    uint32                    colorkey ;		

alpha
    public    uchar                     alpha ;		

Signal Details

Property Details

Method Details

map_rgb ()
    public    uint32                    map_rgb                   ( uchar               r,
                                                                    uchar               g,
                                                                    uchar               b ) ;		

map_rgba ()
    public    uint32                    map_rgba                  ( uchar               r,
                                                                    uchar               g,
                                                                    uchar               b,
                                                                    uchar               a ) ;		

get_rgb ()
    public    static void               get_rgb                   ( uint32              pixel,
                                                                    PixelFormat         fmt,
                                                                    uchar               r,
                                                                    uchar               g,
                                                                    uchar               b ) ;		

get_rgba ()
    public    static void               get_rgba                  ( uint32              pixel,
                                                                    PixelFormat         fmt,
                                                                    uchar               r,
                                                                    uchar               g,
                                                                    uchar               b,
                                                                    uchar               a ) ;		


Created by Valadoc