[cairo] cairo_image_surface_create() width/height limit

Martin Landa landa.martin at gmail.com
Thu Nov 13 04:53:08 PST 2014


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


More information about the cairo mailing list