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

How to set the color of a metafile to a specific value?

I need to change the color of all objects available in a metafile into an specific color. However, what is currently provided is just for translating/scaling/rotating colors. For example I need to set the color of all available objects to…
Kamran Kia
  • 347
  • 3
  • 7
0
votes
1 answer

EmfToWmfBits api always returns 0

I want to use the EmfToWmfBits api. And first I will try to create a Metafile class then call this api. I think the problem is in the way I create the class. Metafile myMetafile(szArglist[1]); This way gives me the object myMetafile, but it…
Xudong Shao
  • 199
  • 3
  • 12
0
votes
1 answer

How to get raw metafile bytes from GDI+ metafile object?

I know that I can get raw metafile bytes from a GDI's HENHMETAFILE using GetEnhMetaFileBits function. But how do I get raw bytes from Gdiplus::Metafile object for GDI+?
c00000fd
  • 20,994
  • 29
  • 177
  • 400
0
votes
0 answers

How to insert a System.Drawing.Image as a Metafile into a Word document?

I have a problem with metafile picture insertion into a Word document from code. I need to insert picture already loaded as a System.Drawing.Image, not from path. The method: InlineShapes.AddPicture("picture path", etc...) won't work. I tried…
Timur Fayl
  • 23
  • 4
0
votes
1 answer

Find last drawn pixel of C# Metafile

I have a Metafile object. For reasons outside of my control, it has been provided much larger (thousands of times larger) than what would be required to fit the image drawn inside it. For example, it could be 40 000 x 40 000, yet only contains…
Kaito Kid
  • 983
  • 4
  • 15
  • 34
0
votes
0 answers

Getting a bmp file into a RichTextBox: resizing without losing quality + dealing with windows scaling

Goal: My goal is to get a picture (a bmp file) into a RichTextBox, at a size I choose, say 400 pixels high, and width scaled to match, without it being ruined by Windows Scaling (125%, 150%, 200% etc.), or losing quality. Here's my…
0
votes
1 answer

Can anyone provide metadata file of Google-provided PubSub to BigQuery template?

Actually I have to make custom template which similarly work as Google provided PubSub to BigQuery template but I don't have any idea about metadata file of this template so anyone could give metafile for this pre built template?
0
votes
2 answers

Proper way to convert an Enhanced Metafile to a Windows Metafile without pixel rounding

When I convert an Enhanced Metafile (constructed via GDI+ in C#) into an old-style Windows Metafile, the results are very rough, apparently because coordinates are being rounded to the nearest screen pixel. I see this if I convert either via…
Oliver Bock
  • 4,829
  • 5
  • 38
  • 62
0
votes
1 answer

Why does my metafile "lose" a bitmap?

Recently I found a bug while drawing stuff with metafiles. Right now I am not sure if I am doing something wrong or if there is a bug within the drawing of metafiles itself: While drawing images on a metafile which is drawn on another metafile…
Stimpatch
  • 25
  • 6
0
votes
1 answer

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 EnumerateMetafile works, but doesn't anti-alias, which is…
Macke
  • 24,812
  • 7
  • 82
  • 118
0
votes
1 answer

trim empty space on metafile side

I am creating in-memory metafile programmatically - for example line charts. I use Graphics.SetClip(..) and Graphics.ResetClip(..) to set max/min of X/Y axis = limit the scope of drawn datapoints. The result is fine, except of one thing: The…
DF_D
  • 1
  • 2
0
votes
1 answer

Need an EMFPlus sample file

Currently all the EMF files which I generated through Aspose engine are in EMF dual mode. It would be very nice if someone could enlighten me on how to generate an EMFPlus file through Aspose. If you can provide me a sample EMFPlus file, which is…
sv k
  • 11
  • 3
0
votes
0 answers

Unity5 I lost my codes inside .cs file. C# files still exist, but codes gone

Unity 5.1.2f1 (64-bit) version.(windows 8.1) I closed Unity. After a while ago I opened Unity and I had some errors in Console.Then I clicked the error and I realized that I lost my code in some of my C# files.Then I checked folders of my scripts…
0
votes
1 answer

Git won't find Metafiles

This is a weird thing. I'm working with a team and we use Git to share the project. When I push my changes to the project, my Meta files never show as part of the submitted files. Sometimes, when I push my changes, the metafiles register on other…
Whelandrew
  • 195
  • 10
0
votes
0 answers

Extracting EMF from EMF Spool?

Windows EMF Spool files format are well-known and documented, but i cannot seem to understand how I can extract information from the spool file. Right now, what I'm trying to achieve is to extract the EMF from the SPL file (as a general rule, it…
LucasA
  • 192
  • 1
  • 9