cairo_image_surface_create() width/height limit
Martin Landa <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CA+Ei1OdcTm_zK6Vkee2WwfNeKTakPPErKvS3-m1N5G7zCdJjdg@mail.gmail.com> |
Hi all, I would like to ask you about width/height limit when creating image surface [1]. With and height in `cairo_image_surface_create()` seems to have defined limit on 2^15 (32768) which is more then one billion cells. But unfortunately this limit doesn't allow to create a surface with `height = 1` and `width > 2^15`. Why the limit is defined for width and height separately and not for a number of cells? And how to solve the example noted above? My goal is to create surface for one raster row (ie. `height =1`) which has usually number of cells larger than 2^15... Thanks in advance! Martin -- Martin Landa http://geo.fsv.cvut.cz/gwiki/Landa http://gismentors.eu/mentors/landa -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo