[cairo] Win32 printing surfaces to EMF DCs
Zozó Teki
teknos at gmail.com
Tue Nov 13 06:56:01 PST 2012
Hi,
I want to use cario to draw to a Windows Enhanced Metafile. In Windows
metafiles have an associated _reference device context_ specific to a
concrete device. Otherwise metafiles are largely generic, in many ways
similar to cairo recording surfaces.
The easiest way to create an EMF file is to use the display as reference
context - it is always available. When cairo creates the printing surface,
it reads the Clip Box of the reference DC and uses that as extent. This way
I can only create EMFs as large as the screen. Is there some way I can
adjust the extent of a win32 printing surface?
Do you think it is a good idea to set the extents of win32 printing
surfaces created for metafiles to unbounded?
Zoltan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cairographics.org/archives/cairo/attachments/20121113/ce803a17/attachment.html>
More information about the cairo
mailing list