Questions tagged [.emf]

Enhanced Windows MetaFile format (EMF)

EMF (Enhanced MetaFile) is one of Microsoft Windows' "metafile" formats. Its contents are a representation of the primitive operations that Windows' GDI subsystem should use to draw a given object. Metafiles may contain vector graphics as well as bitmaps, and often contain both. They are supported natively by Windows at the GDI level, and in fact are typically created by GDI itself as an application "draws" in a specially-created device context.

Useful links:

63 questions
19
votes
9 answers

GDI+ / C#: How to save an image as EMF?

If you use Image.Save Method to save an image to a EMF/WMF, you get an exception (http://msdn.microsoft.com/en-us/library/ktx83wah.aspx) Is there another way to save the image to an EMF/WMF? Are there any encoders available?
EricSch
  • 1,808
  • 2
  • 13
  • 14
18
votes
3 answers

Reduce file size for charts pasted from excel into word

I have been creating reports by copying some charts and data from an excel document into a word document. I am pasting into a content control, so i use ChartObject.CopyPicture in excel and ContentControl.Range.Paste in word. This is done in a…
Steve Clanton
  • 4,064
  • 3
  • 32
  • 38
11
votes
2 answers

Increasing the quality of EMF outputs in R and ggplot2

I am generating and saving an EMF file with ggplot2 and with the win.graph command. the output graph is low quality and lines looked jagged. I really need to have it in EMF format (exporting to pdf solves the problem but I need the EMF file). How…
Mark
  • 10,754
  • 20
  • 60
  • 81
11
votes
2 answers

How to display Windows Metafile?

I need to display a Windows Metafile (EMF) using WPF, how can I do? Edit: I'd to keep the image vector-based.
gliderkite
  • 8,828
  • 6
  • 44
  • 80
10
votes
2 answers

Does WPF support reading/writing WMF/EMF files natively?

Can Windows Presentation Foundation read/write WMF/EMF files without having to use WinForms Interop or Win32. If it does not, what is the reason?
user62572
  • 1,388
  • 2
  • 15
  • 24
9
votes
1 answer

How to programmatically trigger validation of EMF model?

In an editor created with EMF, one can validate a model by right-clicking on any modeled element and choosing "Validate" from the context menu. I want to call this functionality programmatically. My use case is that I want to validate the model when…
ErikWittern
  • 1,083
  • 9
  • 13
9
votes
2 answers

How to convert an SVG file to an EMF file in C#

It's definitely possible to convert an SVG to EMF, for example this website. I wonder if it's possible to achieve this conversion in C#? Update: I tried to read an SVG file using SVG.NET and draw it to a Graphics object, then tried export the Image…
nevets
  • 4,631
  • 24
  • 40
9
votes
0 answers

rmarkdown vector graphics for knit word

When using rmarkdown with knitr in Rstudio to knit a Microsoft Word document, the graphics generally look crappy because the usual vector graphics formats, such as PDF are not supported in Microsoft Word. Fortunately, the devEMF package in R…
zkurtz
  • 3,230
  • 7
  • 28
  • 64
8
votes
2 answers

Does EMF (Enhanced Metafile) support opacity?

I would be able to create an EMF image (programmatically or from a software) having the background color 50% transparent and the other elements completely opaques. I'm already be able to create a background completely transparent, but not with a…
superrache
  • 650
  • 11
  • 26
7
votes
2 answers

Vector graphics clipboard format for Qt

I want my Qt application to be able to save simple vector graphics to clipboard in a compatible way. On windows I want to be able to paste the graphics into Microsoft Word or Powerpoint. On Linux I want to be compatible with the Open Office. Which…
danatel
  • 4,844
  • 11
  • 48
  • 62
6
votes
3 answers

Save metafile in C#

If I have a wmf or emf image in System.Drawing.Image, is there a way to save the metafile data with c# without rendering it as a bitmap? Calling Image.Save will render it to a bitmap and I want to keep the original data so that it would still be a…
Chris Miller
  • 4,809
  • 4
  • 33
  • 50
5
votes
1 answer

Distributing RDLC output as an email attachment

Our winforms application has long allowed a "print" option which basically uses RDLC. The customer has requested that we add a feature allowing users to send the "printed" output via email. Now, we know that an EMF file is created (in the TEMP…
hawbsl
  • 15,313
  • 25
  • 73
  • 114
5
votes
1 answer

How to enable anti-aliasing when rendering WMF to BitMap in C#/WPF/WinForms?

Why won't lines etc be anti-aliased when doing this? using (var myGraphics = Graphics.FromImage(bitmap)) { myGraphics.CompositingQuality = CompositingQuality.HighQuality; myGraphics.SmoothingMode =…
Macke
  • 24,812
  • 7
  • 82
  • 118
5
votes
1 answer

Change resolution of EMF image files to prevent quality loss in PowerPoint

Exporting .emf (Enhanced Metafile) vector from Illustrator CS5 [and other versions tested] for use in MS office documents such as PowerPoint, can be a right pain. If you export them at a sensible size, the vectors don't have enough points and you…
Jamie G
  • 1,653
  • 3
  • 20
  • 43
5
votes
4 answers

How to read EMF - Enhanced metafiles?

Does anybody know of a library or a piece of code that can read EMF (Enhanced Metafiles). Ideally it would convert an EMF to a list of drawing commands and objects?
Ra.
  • 2,499
  • 3
  • 28
  • 41
1
2 3 4 5