[cairo] Dimensions of a "surface_t"
Charles Doutriaux
doutriaux1 at llnl.gov
Tue Nov 8 15:32:00 PST 2011
Hi,
I'm receiving a cairo_t, I can get the surface via cairo_get_target
Now I would like to know what the dimensions of the "surface" is, if it
is an image i can use:
w=cairo_image_surface_get_width(surface);
h=cairo_image_surface_get_height(surface);
But I also get surface that ar PS, PDF or SVG
All of these are created with dims:
e.g.:
surface = cairo_ps_surface_create_for_stream(stream_cairo_write,
ws->mf.any->fp,
XW,YW);
Is it possible to retrieve what the original dims/size were?
Thanks,
C.
More information about the cairo
mailing list