Method
GimpRGB_parse_css
since: 2.2
Declaration [src]
gboolean
gimp_rgba_parse_css (
GimpRGB* rgba,
const gchar* css,
gint len
)
Description [src]
Similar to gimp_rgb_parse_css() but handles RGB colors with alpha
channel in the numerical CSS notation (rgba(255,0,0,255)
or rgba(100%,0%,0%,1000%)).
It doesn’t handle the hexadecimal notation or color names because they leave the alpha channel unspecified.
Available since: 2.2
Parameters
css-
Type: An array of
gcharA string describing a color in CSS notation.
The length of the array is specified in the lenargument.The data is owned by the caller of the function. Each element is a NUL terminated UTF-8 string. len-
Type:
gintThe length of
css, in bytes. or -1 ifcssis nul-terminated.