[cairo] invalid value (typically too big) for the size of the input (surface, pattern, etc.)

Sean naughtykid001 at gmail.com
Mon Dec 20 17:03:35 PST 2010


Hi Cairo Developers,

I got the error from below's code in latest cairo version(1.10.0). My height
and width is more that 32767.
Is there a limited size for surface? Thanks.

_image =  new unsigned char[height * pitch];
memset(_image, 0, height * pitch * sizeof(unsigned char));
 _surface = ::cairo_image_surface_create_for_data(_image
, CAIRO_FORMAT_A8
, width
, height
 , pitch);

From,
Sean

"naughty in the way of creative, not mischief"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20101221/6d2bdd87/attachment.htm>


More information about the cairo mailing list