[cairo] how to draw a surface created with CAIRO_FORMAT_A1 & CAIRO_FORMAT_A8...

Bill Spitzak spitzak at thefoundry.co.uk
Thu Apr 10 13:03:30 PDT 2008


Rajeshwaran Paulchamy wrote:
> hi,
> 
>  
> 
> i have created a surface image by using 
> *cairo_image_surface_create_for_data *by using the format type 
> *CAIRO_FORMAT_A1*.
> 
>  
> 
> i want to render this surface image with a RGB color. how to do this?

I think the solution is to use it as the mask, rather than the source, 
and then paint the solid color.


More information about the cairo mailing list