[cairo] Confused by render to image buffer

Chris fltk at functionalfuture.com
Fri Dec 24 13:17:48 PST 2004


On Fri, 2004-12-24 at 12:45 -0800, Ned Konz wrote:
> The last argument to cairo_set_target_image() should be the stride, not the 
> width. In the case of a 90 pixel wide square, the stride should be 90*4 (for 
> RGBA), not 90.

Thanks for that!  That fixed it.

For some reason when I first looked into the API I read somewhere that
the stride was normally the width so I had that in my mind.

-- 
// Chris




More information about the cairo mailing list