Hi Bryan,<br><br>I work with cairo using EMF and my experience is that you get a bitmap in the EMF if you use cairo functions not supported<br>by GDI (or EMF). These include gradients and transparency. You can set the resolution of the image cairo uses with cairo_surface_set_fallback_resolution. If you want to insert a bitmap, EMF can only store it in an uncompressed format,<br>
so I see no way around that being exploded in size.<br><br>I am sure I do not get your problem fully, so my suggestions above are probably off-target.<br><br>Zoltan<br><br><br><div class="gmail_quote">2010/6/8 Bryan Montgomery <span dir="ltr"><<a href="mailto:monty@english.net">monty@english.net</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hello,<br>I've been trying to find a process today to generate an image to EMF (Windows Enhanced MetaFile). I'm able to use the Java HEP package to create an EMF - however that seems to just embed the bitmap and you end up with a 2MB file as opposed to the attached SVG file. <br>
<br>Searching google, I came across this thread - <a href="http://old.nabble.com/Fwd:--SVG-to-EMF-quality-p25867395.html" target="_blank">http://old.nabble.com/Fwd:--SVG-to-EMF-quality-p25867395.html</a>.<br>I've tried compiling the code in the thread to accomplish this, but I am left with an unsatisifed link error for the draw function. It's been a long time since I worked with MSVC!<br>
<br>I was wondering if anyone has code that I could compile (or possibly execute) on Windows - and whether this will produce an EMF file of a similar size to the SVG file ( HEP also produces similar sized pdf and eps files - just not emf) - or if it will also balloon to 2MB.<br>
<br>Thanks,<br>Bryan.<br><br> /* Undo the scale applied to the GDI CTM */<br> cairo_scale (cr, 16, 16);<br> draw (cr);<br> cairo_destroy (cr);<br>
<br>--<br>
cairo mailing list<br>
<a href="mailto:cairo@cairographics.org">cairo@cairographics.org</a><br>
<a href="http://lists.cairographics.org/mailman/listinfo/cairo" target="_blank">http://lists.cairographics.org/mailman/listinfo/cairo</a><br></blockquote></div><br>