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.

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.

106 questions
1
vote
3 answers

Where can I find documentation and/or examples of working with TMetafile and TMetafileCanvas?

As I'm working to add custom printing to my application, I've settled on using TMetafile to create the pages, then using it to preview &/or print, but I'm finding the documentation lacking. Are there any good resources for learning the ins and outs…
Zartog
  • 1,906
  • 1
  • 16
  • 27
1
vote
1 answer

Windows 10 Creators update eats metafile graphics in MFC RichTextEdit

I jumped into an old MFC application which has a problem when run under Windows 10 1703/Creators update. It works fine for XP to Windows 10/1607. After some investigation, it seems that in Windows 10/1703 the app cannot paste metafiles (wmf and emf)…
Andreas
  • 11
  • 2
1
vote
1 answer

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 keywords. With applist, i successfully managed to…
Fabio L.
  • 71
  • 1
  • 1
  • 5
1
vote
1 answer

Azure Web App, how to convert image/x-emf to png? [ C# ]

How can I convert emf (image/x-emf) files to png without using "MetaFile class" which seems to not work in Azure Web Apps. It works on self hosted sites. I don't seem to find any alternative. Source…
XzaR
  • 610
  • 1
  • 7
  • 17
1
vote
1 answer

disppeared recession bar when copy as metafile

I am using ggplot to add recession bars in Rstudio. However, when I copy it as metafile and paste, the bars disappear. I also found this problem in matlab using recessionplot when copying as eps. The following is my code. bplot2 <- ggplot(yfit6.df,…
Rong
  • 29
  • 1
1
vote
0 answers

How to set bounds Graphics when using Metafile?

In our application it's possible to create images in different fileformats, like PNG, BMP, JPEG etc. Now I'm currently investigating the possibility to create Metafile images (.emf). With our Charts I can get this to work, because we're using the…
Vincent Hogendoorn
  • 700
  • 1
  • 7
  • 23
1
vote
1 answer

What is the .NET equivalent of CreateEnhMetaFile and PlayEnhMetaFile?

I'm porting some C++ code to VB.NET which creates a print job consisting of several pages. Every page has a template of graphical objects (text, lines, curves, etc) which stays the same on each page, and overlaid on top of that is the different data…
Matthew Melton
1
vote
0 answers

Metafile Printing behaviour on high dpi systems

Just recently we got a bug report regarding high dpi system (e.g. 4k screens with a resoltion higher than 200dpi) that our printed graphics are not properly scaled - they do not take the whole width on the screen. Following code should show the…
mrabat
  • 802
  • 7
  • 15
1
vote
2 answers

VB.net Saving an MetaFile / EMF as a bitmap ( .tiff)

Currently I have a third party control that generates a Metafile. I can save the .wmf file to disk with out issue. The problem is how do I render the Metafile as a Tiff file. Currently I have the following code to get my metafile and save it. …
pehaada
  • 513
  • 2
  • 8
  • 20
1
vote
2 answers

EMF alternate child references

As example I want to model in EMF a word-document: This would be my metamodel: document - table (0..*) - paragraph (0..*) The problem here is that the model would be very linear: document - table_1 - table_2 - table_3 -…
Ghashange
  • 1,027
  • 1
  • 10
  • 20
1
vote
3 answers

ContentControl WPF does not display Content

I've convertet the Project from https://silverlightcontrib.codeplex.com/ to WPF (github https://github.com/jogibear9988/silverlightcontrib) to get EMF/WMF metafile support in WPF. Now my Probjem is, the EMF Class uses a ContentControl for…
Jochen Kühner
  • 1,385
  • 2
  • 18
  • 43
1
vote
0 answers

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.Save(tempPath); var stream = new…
Nick
  • 10,309
  • 21
  • 97
  • 201
1
vote
2 answers

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 except transparency issues: CRichEditCtrl ctrl; //…
Aragornx
  • 429
  • 5
  • 10
1
vote
1 answer

Web images from cgm

I am trying to use computer graphics metafile (cgm) in my web pages. I am using PHP and Javascript. So I am trying to find the structure of the file to be able to read it and draw its images. I am also searching for an open source software that can…
1
vote
1 answer

Metafile clipping rectangle

Following code makes quite some troubles: procedure TForm1.Button1Click(Sender: TObject); var dc : HDC; meta : TMetafile; metaCanv : TMetafileCanvas; cr : TRect; sz : TSize; begin dc := GetDC(0); SetWindowExtEx(dc, 4800,…
mrabat
  • 802
  • 7
  • 15