PixelFormat
Object Hierarchy:
Description:
[ CCode ( cname = "SDL_PixelFormat" , free_function = "SDL_FreeFormat" , ref_function = "SDL_PixelFormat_up" , unref_function = "SDL_FreeFormat" ) ]
public class PixelFormat
Content:
Static methods:
- public static void calc_gamma_ramp (float gamma, out uint16 ramp)
- public static bool enum_tomasks (PixelRAWFormat format, out int bpp, out uint32 r_mask, out uint32 g_mask, out uint32 b_mask, out uint32 a_mask)
- public static unowned string? get_pixelformatname (PixelRAWFormat format)
- public static uint32 masks_toenum (int bpp, uint32 r_mask, uint32 g_mask, uint32 b_mask, uint32 a_mask)
Creation methods:
Methods:
- public void get_rgb (uint32 pixel, ref uint8 r, ref uint8 g, ref uint8 b)
- public void get_rgba (uint32 pixel, ref uint8 r, ref uint8 g, ref uint8 b, ref uint8 a)
- public uint32 map_rgb (uint8 r, uint8 g, uint8 b)
- public uint32 map_rgba (uint8 r, uint8 g, uint8 b, uint8 a)
- public int set_palette (Palette palette)
- public unowned PixelFormat up ()
Fields: