Dimensions of a "surface_t"

Charles Doutriaux <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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.

--
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.