type Cairo_Format is (Cairo_Format_ARGB32, -- Each pixel is a 32-bit quantity, with -- alpha in the upper 8 bits, then red, then green, then blue. -- The 32-bit quantities are stored native-endian. Pre-multiplied -- alpha is used. (That is, 50 transparent red is 0x80800000, -- not 0x80ff0000.) Cairo_Format_RGB24, -- Each pixel is a 32-bit quantity, with -- the upper 8 bits unused. Red, Green, and Blue are stored -- in the remaining 24 bits in that order. Cairo_Format_A8, -- Each pixel is a 8-bit quantity holding an alpha value. Cairo_Format_A1, -- Each pixel is a 1-bit quantity holding -- an alpha value. Pixels are packed together into 32-bit -- quantities. The ordering of the bits matches the -- endianess of the platform. On a big-endian machine, the -- first pixel is in the uppermost bit, on a little-endian -- machine the first pixel is in the least-significant bit. CAIRO_FORMAT_RGB16_565_Deprecated_Do_Not_Use -- This value is deprecated );
type ARGB32_Array is array (Natural range <>) of ARGB32_Data;
type ARGB32_Array_Access is access ARGB32_Array;
type RGB24_Array is array (Natural range <>) of RGB24_Data;
type RGB24_Array_Access is access RGB24_Array;
type Byte_Array is array (Natural range <>) of Byte;
type Byte_Array_Access is access Byte_Array;
function Create
( | Format | : Cairo_Format; |
Width | : Gint; | |
Height | : Gint) return Cairo_Surface; |
function Cairo_Format_Stride_For_Width
( | Format | : Cairo_Format; |
Width | : Gint) return Gint; |
function Create_For_Data_Generic
( | Data | : System.Address; |
Format | : Cairo_Format; | |
Width | : Gint; | |
Height | : Gint; | |
Stride | : Gint) return Cairo_Surface; |
function Create_For_Data_ARGB32
( | Data | : ARGB32_Array_Access; |
Width | : Gint; | |
Height | : Gint) return Cairo_Surface; |
function Create_For_Data_RGB24
( | Data | : RGB24_Array_Access; |
Width | : Gint; | |
Height | : Gint) return Cairo_Surface; |
function Create_For_Data_A8
( | Data | : Byte_Array_Access; |
Width | : Gint; | |
Height | : Gint) return Cairo_Surface; |
function Get_Data_Generic
( | Surface | : Cairo_Surface) return System.Address; |
function Get_Format
( | Surface | : Cairo_Surface) return Cairo_Format; |
function Get_Width
( | Surface | : Cairo_Surface) return Gint; |
function Get_Height
( | Surface | : Cairo_Surface) return Gint; |
function Get_Stride
( | Surface | : Cairo_Surface) return Gint; |
Binding from C File version 1.8.8