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

How to override the pens and brushes of a metafile when drawing it?

In C++ with GDI+ I would like to draw a metafile, but modifying it in such a way that the brushes and pens are replaced by the ones I created in my program. I would like this brush and this pen to be used instead of any others specified in the…
bfredo123
  • 462
  • 1
  • 8
  • 20
1
vote
1 answer

In-memory metafile is not drawn

I need to create some in-memory (not file-based) metafiles and display them. In the OnPaint handler of a panel on my form I call this code: Metafile metafile; using( Graphics offScreenGraphics = Graphics.FromHwndInternal( IntPtr.Zero ) ) { …
crypto_rsa
  • 341
  • 1
  • 12
1
vote
0 answers

Getting image(metafile) from Excel OLE object C#

I am working on an Add in To Excel performing some operations on OLE object. It requires getting some data from OLE object embedded programmatically in worksheet (conversion from math type to TeX language). So far I've dealt with most of the issues…
user1658223
  • 715
  • 7
  • 15
0
votes
1 answer

Windows Enhanced Metafile Pen vs Windows Metafile

I'm working on a system that have huge database of metafiles (the old win3.0 format), and I need to convert that to Enhanced Metafile. I did convert the whole database, and manage to play the files to the display as it should be, except one…
rafaelxy
  • 312
  • 3
  • 12
0
votes
2 answers

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.LoadFile(...) and take that to save it as a tiff/png…
Jörg Battermann
  • 4,044
  • 5
  • 42
  • 79
0
votes
1 answer

Picturebox throws "Argument is not valid" when assigning a MetaFile to an image

.Net 4.7.2. Winforms. Rendering a complex page full of text and graphics. I used a Bitmap. I then show it in a preview window by sizing a PictureBox and placing the picturebox into a panel that scrolls. It works perfectly to a Bitmap, except of…
John Tamburo
  • 427
  • 4
  • 12
0
votes
0 answers

Drawing to a GDI+ metafile that is based on a memory stream - can the stream be disposed afterwards?

I am using a MemoryStream to write my GDI+ drawing commands to a Metafile, and display the Metafile later in order to accelerate such trivial tasks as panning and zooming. That works fine. When I wrote the code in the past, I took care not to…
oliver
  • 2,771
  • 15
  • 32
0
votes
1 answer

How to fix unity package manager errors?

I use unity 2022.1.21f1. I wanted to add the urp package to my project with package manager but in the console there was a lot of errors. I also tried to add other packages but situation is the same. Errors said "script has no meta file, but it's in…
0
votes
0 answers

How to move project without getting metafile errors? (C# viisual studio)

I'm using SourceTree as a version controller. Everytime i download the project to a new computer there are metadata file errors (CS0006). It's always an hassle to get it to work. I always have to try ten different things until it works and then i…
0
votes
0 answers

How can objectHandle in HGDIOBJ objectHandle [1] be a variable length array?

I'm trying to understand why in HANDLETABLE struct objectHandle is an array of handles. As I understand, HGDIOBJ is a void pointer and therefore objectHandle is an array of void pointer with an element. But in the book Programming Windows 5th…
titanium
  • 25
  • 1
  • 4
0
votes
0 answers

How to improve the quality of graphics made in R when they are copied to the clipboard as metafiles in R studio?

when I make graphics in R, I use specific settings for aesthetics. Saving graphics as PDF maintains the quality of almost all elements. But when I copy the graphics, as a metafile to the clipboard to use them in .doc or .docx documents, I lose all…
Daniel Valencia C.
  • 2,159
  • 2
  • 19
  • 38
0
votes
0 answers

How to create an EMF file from a MS Chart graph using a Stream

I am trying to create an EMF image from a MS Chart graph. I have got no problem using a FileStream to temporary store the image like this: FileStream fileStream = new FileStream("test.emf", FileMode.Create); chart1.SaveImage(fileStream,…
stenio
  • 297
  • 1
  • 10
0
votes
0 answers

R, how to export a gt as a metafile

I have a datatable such as this one : library(stringi) library(tidyverse) library(data.table) MWE <- data.table("Zone"=stri_rand_strings(9, 10, pattern = "[A-Za-z0-9]")) %>% .[,paste0("Var",2:11):= round(rnorm(9,2,4),1)] From that I want to…
Anthony Martin
  • 767
  • 1
  • 9
  • 28
0
votes
1 answer

VB.Net Metafile generates error ("A generic error occurred in GDI+")

I would like get a little help from you. I am working on a diagram creator which can be called more than once. The diagram every time is different than the earlier version but I would like to use the same filename. The problem is that when I click…
meduzaHUN
  • 3
  • 1
0
votes
1 answer

2D Graphics Transform - moving the origin

I have a vector graphics format that has its origin at the bottom left and i need to render it to an enhanced metafile which has its origin at the top left. What is a transform to move between the two without flipping it upside down?
Aran Mulholland
  • 23,555
  • 29
  • 141
  • 228