Questions tagged [metafile]

A generic term for a file format that can store multiple types of data. This commonly includes graphics file formats, which can contain raster, vector, and type data.

metafile
Filter by
Sorted by
Tagged with
5 votes
1 answer
2k views

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's user avatar
  • 25.1k
7 votes
2 answers
4k views

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 ...
danatel's user avatar
  • 4,924
11 votes
2 answers
10k views

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's user avatar
  • 8,898
2 votes
1 answer
2k views

Different scaling when drawing Metafile on different machines

I'm having problem to get consistent scaling in my WinForms application that uses a Metafile with millimeter as the unit of measure. I wrote a small sample application to illustrate the problem. This ...
salle55's user avatar
  • 2,111
2 votes
0 answers
600 views

How to change colors of EMF+ image in C#

I'm trying to develop a special kind of heatmap, where the color of a marker depends on the value of some calculated variables. What I need to do is change the color of my existing EMF+-Image. The ...
Thomas's user avatar
  • 81
1 vote
1 answer
366 views

ggsave error with wmf unused argument (bg = "white")

ggsave in ggplot (3.3.4) generates this error: Error in grDevices::win.metafile(...) : unused argument (bg = "white") However, I can export the plot interactively using the RStudio | Plots ...
David Weis's user avatar
1 vote
0 answers
1k views

Save MetaFile to Stream and back again

I need to store a MetaFile into a Stream and create a new Metafile with the same stream. I have the following code but it throws an excetpion: string tempPath = Path.GetTempFileName(); MyMetaFile....
Nick's user avatar
  • 10.4k
1 vote
1 answer
2k views

extract keywords form images using python

still learning python. I am currently working on a python code that will extracts metadata (usermade keywords) from images. I already tried Pillow AND exif but this excludes the user made tags or ...
Fabio L.'s user avatar
1 vote
2 answers
741 views

How to render CRichEditCtrl on CDC with transparent backgorund ? (MFC)

I need help with rendering CRichEditCtrl content with transparent background on graphical context which is displayed on screen and printed as well. Now I have following code, which is working good ...
Aragornx's user avatar
  • 449
0 votes
3 answers
532 views

How do I parse a polyline metafile record out of a byte array?

I need a little help in defining the following Windows GDI type in C#. I have the data in the form of a byte[] in C#, and I need to somehow marshal or cast it as the following in C#. I suppose I need ...
GdiHelp's user avatar
0 votes
2 answers
2k views

Reliable .wmf/wmf to Pixel based image conversion

Good afternoon, I am having a little trouble with .net's internal (System.Drawing) based MetaFile / Image handling of .wmf files that containt transparent areas. Basically whenever I do a MetaFile....
Jörg Battermann's user avatar
0 votes
1 answer
406 views

How do I parse a CREATEPENINDIRECT metafile record out of a byte array?

I need a little help in defining the following Windows GDI type in C#. I have the data in the form of a byte[] in C#, and I need to somehow marshal or cast it as the following in C#. Please see my ...
GdiHelp's user avatar
0 votes
2 answers
402 views

How do I parse a PolyPolygon16 metafile record out of a byte[] c#

I need a little help in defining the following Windows GDI type in C#. I have the data in the form of a byte[] in C#, and I need to somehow marshal or cast it as the following in C#. This is the ...
GdiHelp's user avatar
0 votes
1 answer
801 views

How to convert WMF to EMF+ with GdipConvertToEmfPlus without losing three-quarter of image?

After converting WMF to EMF+ in order to get anti-aliased rendering, only the upper left quadrant of my WMF is included after conversion to EMF+. Drawing the WMF (before conversion) with ...
Macke's user avatar
  • 25.1k