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
2
votes
0 answers

When adding text to a metafile, the letter font is changed

I want to add some text to a metafile. The code i use: Metafile m = new Metafile("1.emf"); Graphics grfxVideo = CreateGraphics(); IntPtr ipHdc = grfxVideo.GetHdc(); Metafile mf = new Metafile("2.emf",…
sgkin
  • 113
  • 2
  • 7
2
votes
1 answer

How does Excel compute the resolution of the metafiles it generates when copying a range "as shown on screen"?

I have some C# code I got from http://bytes.com/topic/c-sharp/answers/572657-net-clipboard-metafiles that copies a cell range under the following two settings: As shown on screen, As shown when printed. When I look at the resulting metafile's…
Shark
  • 2,322
  • 5
  • 31
  • 44
2
votes
2 answers

Is there an efficient way to convert a3d scene to a 2d Enhanced Metafile

I am developing a CAD application using Delphi2010 and OpenGL. Currently, i am working on a module to export the current view to an Image file. This is pretty straigthforward for raster formats (render scene to offscreen Buffer of desired…
sum1stolemyname
  • 4,506
  • 3
  • 26
  • 44
2
votes
1 answer

What exactly is the reference DC parameter for GetWinMetaFileBits() used for?

I was under the impression that classic Win16 metafiles had no embedded size or resolution information (unless there is a METAFILEPICT header or similar) - what does GetWinMetaFileBits() use the reference DC for?
bdonlan
  • 224,562
  • 31
  • 268
  • 324
2
votes
1 answer

Why is Visual Studio creating .meta files even outside Assets folder?

I have the following project setup: Unity project in C:\XXX Added an another project to solution, located in C:\XXX\Tests Now, whenever adding a class to that Test project, I found that a .meta file is being added as well. This doesn't seem…
aybe
  • 15,516
  • 9
  • 57
  • 105
2
votes
1 answer

How to output Metafile (emf) into stream (or byte[])

For an application I'm currently developing, I need to create a .emf file. I've got it working when I output the result directly to a file, but I can't get it to output into a stream, which is essential to what I'm trying to do. This code correctly…
Dries Geenen
  • 582
  • 5
  • 14
2
votes
0 answers

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 following code works like a charm when using png or…
Thomas
  • 81
  • 3
2
votes
1 answer

R copy to inkscape 0.92

I'm new using R. My friends usually use inkscape for finishing their R plots. They use RStudio and Inkscape v0.92, after they make the plots in RStudio Export > Copy to Clipboard > Copy as Metafile > Copy Plot Then simply Ctrl + V in inkscape. But…
Daniel Valencia C.
  • 2,159
  • 2
  • 19
  • 38
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
1 answer

Drawing transparent TMetaFile on TCanvas in Delphi

I would like to draw a transparent TMetaFile on a Canvas, used for print watermark. The problem is AlphaBlend function won't recognize TMetaFile.Handle as source as it expects canvas handle. I created a 32bit bitmap with transparency but drawing on…
too
  • 3,009
  • 4
  • 37
  • 51
2
votes
0 answers

VB.Net Paste Enhanced Metafile from clipboard to Picture Box

I want to paste an Enhanced Metafile from Clipboard to a Picture Box in VB.Net. Actually, I did that, but I don't know if doing it in the right way. I have this object from clipboard: Dim obj As DataObject = Clipboard.GetDataObject() Dim typ As…
Daniel Bonetti
  • 2,306
  • 2
  • 24
  • 33
2
votes
1 answer

Conversion of VB Code to Delphi (It will extract image from EMF File)

While searching in the net i got few lines of code in VB for extracting an image from EMF File. I tried to convert that into Delphi but doesnt work. Help me in converting this code to delphi. Public Function CallBack_ENumMetafile(ByVal hdc As Long,…
Bharat
  • 6,828
  • 5
  • 35
  • 56
2
votes
1 answer

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 is how the application looks on a Windows 7…
salle55
  • 2,101
  • 2
  • 25
  • 27
2
votes
2 answers

DPI for EMF files

Do EMF files have a DPI that can be set? I have an application that allows saving an image in multiple formats (including EMF). I allow the user to specify the resolution/DPI for the image(s). However, I cannot find a way to do this for a MetaFile…
KrisTrip
  • 4,943
  • 12
  • 55
  • 74
2
votes
1 answer

How can I grayscale a emf image

Using C# and Visual Studio 2010, how can I make a grayscaled emf from a colored one? Should I enumerate records and change color settings somehow? As a result I want to have a new emf image.
Dmitriy
  • 21
  • 3