[cairo] Images with stride == width?
Ian Britten
britten at caris.com
Thu Jan 15 10:42:51 PST 2009
Hi all,
The docs for cairo_image_surface_create_for_data() state that
cairo_format_stride_for_width() should always be used for for
the 'stride' parameter.
If I have external image data that I'm trying to pass into
cairo_image_surface_create_for_data(), can I set the stride
equal to the width (thus contradicting the docs)?
The external image data has no padding/stride in it, and I'm
trying to figure out if I can pass it in directly as it is, or
if I have to copy it into another buffer (which was allocated
with the calculated stride value).
Thanks for any clarification!
Ian
More information about the cairo
mailing list