| GIMP Color Library Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
void gimp_cairo_set_source_rgb (cairo_t *cr,const GimpRGB *color); void gimp_cairo_set_source_rgba (cairo_t *cr,const GimpRGB *color); cairo_pattern_t * gimp_cairo_checkerboard_create (cairo_t *cr,gint size,const GimpRGB *light,const GimpRGB *dark); #define GIMP_CAIRO_RGB24_SET_PIXEL (d, r, g, b) #define GIMP_CAIRO_RGB24_GET_PIXEL (s, r, g, b) #define GIMP_CAIRO_ARGB32_SET_PIXEL (d, r, g, b, a) #define GIMP_CAIRO_ARGB32_GET_PIXEL (s, r, g, b, a)
void gimp_cairo_set_source_rgb (cairo_t *cr,const GimpRGB *color);
Sets the source pattern within cr to the solid opaque color
described by color.
This function calls cairo_set_source_rgb() for you.
|
Cairo context |
|
GimpRGB color |
Since GIMP 2.6
void gimp_cairo_set_source_rgba (cairo_t *cr,const GimpRGB *color);
Sets the source pattern within cr to the solid translucent color
described by color.
This function calls cairo_set_source_rgba() for you.
|
Cairo context |
|
GimpRGB color |
Since GIMP 2.6
cairo_pattern_t * gimp_cairo_checkerboard_create (cairo_t *cr,gint size,const GimpRGB *light,const GimpRGB *dark);
Create a repeating checkerboard pattern.
|
Cairo context |
|
check size |
|
light check color or NULL to use the default light gray |
|
dark check color or NULL to use the default dark gray |
Returns : |
a new Cairo pattern that can be used as a source on cr. |
Since GIMP 2.6
#define GIMP_CAIRO_RGB24_SET_PIXEL(d, r, g, b)
Sets a single pixel in an Cairo image surface in CAIRO_FORMAT_RGB24.
|
pointer to the destination buffer |
|
red component |
|
green component |
|
blue component |
Since GIMP 2.6
#define GIMP_CAIRO_RGB24_GET_PIXEL(s, r, g, b)
Gets a single pixel from a Cairo image surface in CAIRO_FORMAT_RGB24.
|
pointer to the source buffer |
|
red component |
|
green component |
|
blue component |
Since GIMP 2.8
#define GIMP_CAIRO_ARGB32_SET_PIXEL(d, r, g, b, a)
Sets a single pixel in an Cairo image surface in CAIRO_FORMAT_ARGB32.
|
pointer to the destination buffer |
|
red component, not pre-multiplied |
|
green component, not pre-multiplied |
|
blue component, not pre-multiplied |
|
alpha component |
Since GIMP 2.6
#define GIMP_CAIRO_ARGB32_GET_PIXEL(s, r, g, b, a)
Gets a single pixel from a Cairo image surface in CAIRO_FORMAT_ARGB32.
|
pointer to the source buffer |
|
red component, not pre-multiplied |
|
green component, not pre-multiplied |
|
blue component, not pre-multiplied |
|
alpha component |
Since GIMP 2.8