[cairo] Binary size of a cairo surface

Behdad Esfahbod behdad at behdad.org
Wed Sep 3 13:28:54 PDT 2014


On 14-09-03 07:27 PM, ax487 wrote:
> Hello all,
> 
> I was just wondering, is it possible to get the actual binary size of a
> cairo_surface_t* created by cairo_image_surface_create. I am guessing
> that this should be proportional to width*height where the actual size
> depends on the given cairo_format_t. Is there some function to determine
> this value?

size = cairo_format_stride_for_width(format, width) * height;

-- 
behdad
http://behdad.org/


More information about the cairo mailing list