Top | ![]() |
![]() |
![]() |
![]() |
GeglColor * | gegl_color_new () |
GeglColor * | gegl_color_duplicate () |
void | gegl_color_get_rgba () |
void | gegl_color_set_rgba () |
void | gegl_color_get_rgba_with_space () |
void | gegl_color_set_rgba_with_space () |
void | gegl_color_get_cmyk () |
void | gegl_color_set_cmyk () |
void | gegl_color_get_hsva () |
void | gegl_color_set_hsva () |
void | gegl_color_get_hsla () |
void | gegl_color_set_hsla () |
void | gegl_color_set_pixel () |
void | gegl_color_get_pixel () |
void | gegl_color_set_bytes () |
GBytes * | gegl_color_get_bytes () |
GParamSpec * | gegl_param_spec_color () |
GParamSpec * | gegl_param_spec_color_from_string () |
GeglColor * | gegl_param_spec_color_get_default () |
const Babl * | gegl_color_get_format () |
GeglColor *
gegl_color_new (const gchar *string
);
Creates a new GeglColor.
Returns the newly created GeglColor.
GeglColor *
gegl_color_duplicate (GeglColor *color
);
Creates a copy of color
.
void gegl_color_get_rgba (GeglColor *color
,gdouble *red
,gdouble *green
,gdouble *blue
,gdouble *alpha
);
Retrieves the current set color as linear light non premultipled RGBA data, any of the return pointers can be omitted.
void gegl_color_set_rgba (GeglColor *color
,gdouble red
,gdouble green
,gdouble blue
,gdouble alpha
);
Set color as linear light non premultipled RGBA data
void gegl_color_get_rgba_with_space (GeglColor *color
,gdouble *red
,gdouble *green
,gdouble *blue
,gdouble *alpha
,const Babl *space
);
Retrieves the current set color stored as space
.
If space
is NULL
, this is equivalent to requesting color in sRGB.
void gegl_color_set_rgba_with_space (GeglColor *color
,gdouble red
,gdouble green
,gdouble blue
,gdouble alpha
,const Babl *space
);
Set color as RGBA data stored as space
. If space
is NULL
, this is
equivalent to storing as sRGB.
void gegl_color_get_cmyk (GeglColor *color
,gdouble *cyan
,gdouble *magenta
,gdouble *yellow
,gdouble *key
,gdouble *alpha
,const Babl *space
);
Retrieves the current set color stored as space
.
If space
is NULL
, this is equivalent to requesting color in the default
naive CMYK space.
void gegl_color_set_cmyk (GeglColor *color
,gdouble cyan
,gdouble magenta
,gdouble yellow
,gdouble key
,gdouble alpha
,const Babl *space
);
Set color as CMYK data stored as space
. If space
is NULL
, this is
equivalent to storing with the default naive CMYK space.
void gegl_color_get_hsva (GeglColor *color
,gdouble *hue
,gdouble *saturation
,gdouble *value
,gdouble *alpha
,const Babl *space
);
Retrieves the current set color stored as space
.
If space
is NULL
, this is equivalent to requesting color in the default
sRGB space.
void gegl_color_set_hsva (GeglColor *color
,gdouble hue
,gdouble saturation
,gdouble value
,gdouble alpha
,const Babl *space
);
Set color as HSVA data stored as space
. If space
is NULL
, this is
equivalent to storing with the default sRGB space.
void gegl_color_get_hsla (GeglColor *color
,gdouble *hue
,gdouble *saturation
,gdouble *lightness
,gdouble *alpha
,const Babl *space
);
Retrieves the current set color stored as space
.
If space
is NULL
, this is equivalent to requesting color in the default
sRGB space.
void gegl_color_set_hsla (GeglColor *color
,gdouble hue
,gdouble saturation
,gdouble lightness
,gdouble alpha
,const Babl *space
);
Set color as HSLA data stored as space
. If space
is NULL
, this is
equivalent to storing with the default sRGB space.
void gegl_color_set_pixel (GeglColor *color
,const Babl *format
,const void *pixel
);
Set a GeglColor from a pointer to a pixel and it's babl format.
[skip]
void gegl_color_get_pixel (GeglColor *color
,const Babl *format
,void *pixel
);
Store the color in a pixel in the given format.
[skip]
void gegl_color_set_bytes (GeglColor *color
,const Babl *format
,GBytes *bytes
);
Set a GeglColor from a pixel stored in a GBytes
and it's babl format.
GParamSpec * gegl_param_spec_color (const gchar *name
,const gchar *nick
,const gchar *blurb
,GeglColor *default_color
,GParamFlags flags
);
Creates a new GParamSpec instance specifying a GeglColor property.
GParamSpec * gegl_param_spec_color_from_string (const gchar *name
,const gchar *nick
,const gchar *blurb
,const gchar *default_color_string
,GParamFlags flags
);
Creates a new GParamSpec instance specifying a GeglColor property.
GeglColor *
gegl_param_spec_color_get_default (GParamSpec *self
);
Get the default color value of the param spec