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
4
votes
1 answer

emf to jpeg conversion using PIL works in python but not pyinstaller packaged exe

I have a peculiar problem at the intersection of the EMF image format, the python PIL (as well as Pillow) image libraries, and the Pyinstaller program for packaging Python into a Windows executable. I have a script that uses PIL/Pillow to convert…
AmitRao
  • 71
  • 1
  • 4
4
votes
1 answer

Are there any virtual printer driver for ESC/POS commands to test while programming?

I am writing a sample program to send raw data to ESC/POS printers (not a specific but printers supporting esc/pos in general) using C# .net. ESC/POS Command Reference: https://reference.epson-biz.com/modules/ref_escpos/index.php?content_id=2 So, as…
user3330840
  • 6,143
  • 7
  • 26
  • 39
4
votes
1 answer

EMF with forced antialiasing

Our program needs to generate vector graphics, and we chose EMF for that. However, it seems that other programs render these images non-antialiased. I found that SVG format does have a flag to indicate that some/all objects should be antialiased. Is…
liori
  • 40,917
  • 13
  • 78
  • 105
3
votes
0 answers

Losing texts when enumerating EMF

I'm enumerating invoice.emf and copy it to another but the texts lost. Surprisingly when I output it to a window, it draws perfectly. int CALLBACK EnhMetaFileProc(HDC hdc, HANDLETABLE *pHandleTable, CONST ENHMETARECORD *pEMFRecord, int iHandles,…
emeraldhieu
  • 9,380
  • 19
  • 81
  • 139
3
votes
0 answers

How interpretation MS-EMF Header object properties - Bounds, Frame, Device and Millimeters?

I'm implement rendering MS-EMF to raster image tool. Parser by specification work's fine. But i have interpretatioin 2.2.9 Header Object properties when rendering problem, not enough information in the specification. To convert from LOGICAL to…
Ildar
  • 93
  • 2
  • 11
3
votes
2 answers

Delphi 7 and EMF+ files

I have an application that can load various graphical file formats such as bmp, jpg, png, emf, etc... and render them onto the screen for previewing. I am using Delphi 7. I have just been introduced to the EMF+ file format that was created around…
Wayne Fulcher
  • 31
  • 1
  • 2
3
votes
2 answers

"Parameter Not Valid" on call to GetHenhmetafile(), trying to save an in-memory Graphics object as EMF

I've searched in vain for the last two weeks for an answer to this one, but I'm stumped. I'm working with some code that creates a sample image from a Graphics object constructed from a metafile, all residing in a memory stream in order to avoid the…
Greg Gauthier
  • 1,336
  • 1
  • 12
  • 25
3
votes
1 answer

How is this EMF image A4 sized?

An EMF file made by Adobe Illustrator (I do not know which version, but it has one of the early style EMR headers) is supposed to be A4 sized and I don't understand how it could be. The file has these EMR records: U_EMRHEADER …
mathog
  • 345
  • 3
  • 11
2
votes
2 answers

Is there any free EMF->SVG converter or plugin to Enterprise Architect which can export image as SVG?

Unfortunately my Enterprise Architect 7.5 does not export in SVG, only in EMF (if I want vector format). I haven't been able to find any free converter which converts EMF to SVG. Do you know any? Other possible solution might be some plugin to…
user219882
  • 15,274
  • 23
  • 93
  • 138
2
votes
2 answers

How to tell the difference between the original .BMP/.EMF picture file with the processed .BMP/.EMF file?

Summarization: Calculations point out in a straight-forward way that: A .BMP picture of 3289 X 4570 X 32bpp takes about 53MB. The picture of same size but 24bpp takes about 43MB, that of 16bpp takes about 28MB. ChemDraw-processed picture file must…
SOUser
  • 3,802
  • 5
  • 33
  • 63
2
votes
2 answers

Extracting Width/Height Dimensions from EMF Image Files

I maintain a small Perl library that extracts width/height from images, for people who want that functionality without using a larger, more generalized library. I've been asked if I can support the Windows EMF format. However, I haven't had much…
rjray
  • 5,525
  • 4
  • 31
  • 37
2
votes
1 answer

Convert Selected PowerPoint Shapes (or DrawingML) to XAML

I need to convert selected PowerPoint shapes to XAML so I can effectively place an equivalent vector-based shape inside my WPF app (the XAML end result has to be scalable - converting to an image defeats the purpose of what I'm trying to do). I'm…
Mark Miller
  • 985
  • 8
  • 13
2
votes
0 answers

Send print from windows 7 to printer at windows XP changes the format of the spool file

I have this weird problem I have a printer installed at windows XP and I configured the print processor like this "winprint---> NT EMF 1.003" So the .spl file is an EMF Format file. Now i share this printer to my office lan. When I send a print from…
sgkin
  • 113
  • 2
  • 7
1
vote
1 answer

Print EMF (WMF) from the Command Line using SHIMGVW.DLL

For Windows XP / Windows Server 2003 I'm trying to print an EMF(or WMF) file format to the virtual printer "Microsoft XPS Document Writer" using Windows Picture and Fax Viewer (shimgvw.dll) from the command line. I want the resulting XPS to be in…
Rampant
1
vote
1 answer

Is there a way to retrieve "as is" the internally stored EMF file corresponding to a picture in a PowerPoint presentation?

Background: I am the developer of IguanaTex, a PowerPoint add-in to insert LaTeX displays/equations into PowerPoint on Windows and Mac. Many Mac users use another software, LatexIt, to insert PDF generated from LaTeX into PowerPoint (and other…
leilu
  • 367
  • 3
  • 10