[cairo] add solid/gradient pattern info getters
Behdad Esfahbod
behdad at behdad.org
Thu Sep 14 17:01:27 PDT 2006
Thu, 2006-09-14 at 16:58 -0400, Vladimir Vukicevic wrote:
> +cairo_public cairo_status_t
> +cairo_pattern_get_color_stop_rgba (cairo_pattern_t *pattern,
> + int index, double *offset,
> + double *red, double *green,
> + double *blue, double *alpha);
Thanks Vlad, a lot. Just wanted to note that having index as the last
argument means the other arguments are exactly in the order that you
pass to cairo_pattern_add_color_stop. But having index right after
pattern has its own benefits (readability mainly.)
--
behdad
http://behdad.org/
"Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill"
-- Dan Bern, "New American Language"
More information about the cairo
mailing list