trouble with large image sizes

Dan Raymond <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
I'm trying to create a large image surface using Cairo but I am getting 
an error.  When I execute the following code it succeeds (status is 
CAIRO_STATUS_SUCCESS):

uint32_t width = 40960, height = 23040;
cairo_surface_t *surface = 
cairo_image_surface_create(CAIRO_FORMAT_RGB24, width, height);
printf("status = %d\n", cairo_surface_status(surface));

But if I double the width and height it fails (status is 
CAIRO_STATUS_INVALID_SIZE):

uint32_t width = 81920, height = 46080;
cairo_surface_t *surface = 
cairo_image_surface_create(CAIRO_FORMAT_RGB24, width, height);
printf("status = %d\n", cairo_surface_status(surface));

Is there an arbitrary restriction on the size of an image surface?
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.