21 Dec 2010 02:03
invalid value (typically too big) for the size of the input (surface, pattern, etc.)
Sean <naughtykid001 <at> gmail.com>
2010-12-21 01:03:35 GMT
2010-12-21 01:03:35 GMT
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);
Sean
"naughty in the way of creative, not mischief"
-- cairo mailing list cairo <at> cairographics.org http://lists.cairographics.org/mailman/listinfo/cairo
RSS Feed