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

metafile getData from dragDrop generates exception

I am trying to get at comment data in a Metafile that has been dragDrop'd onto my form, however, this code generates the error: Additional Information: The runtime has encountered a fatal error. The address of the error was at 0xeb556610, on…
Jon Boede
  • 31
  • 6
0
votes
1 answer

How to crop Metafile

I'm working with MetaFile. Is there any way to crop a metafile to zoom a specific part? I'm thinking of redrawing it on a larger bitmap then crop that image, but I know this is not ideal.
Lâm Ánh
  • 51
  • 7
0
votes
1 answer

What class(es) are used for bitmap conversion & metadata in Java 1.6?

We have some old code (Java 1.2) that heavily uses JAI_IO for image manipulation. We're now Java 1.6 and so we no longer need this. First off, should I still be using BufferedImage? Or is there a better class? What I fundamentally need to do…
David Thielen
  • 28,723
  • 34
  • 119
  • 193
0
votes
1 answer

Red5 streaming problems with MP4

I am using Red5 to stream my videos. But the buffer is getting null for MP4 videos. There is no problem with flv videos. And for some MP4 files its streaming correctly. But only few MP4 files are not streaming properly. I looked about MOOV ATOM…
anilCSE
  • 2,461
  • 3
  • 23
  • 29
0
votes
0 answers

Add alpha to enhanced metafile

I am creating an enhanced metafile, which I am drawing a graph to. The graph highlights sections in red, using an alpha of 40 to give it some transparency. When the file is saved the alpha is abscent and what looks like Windows using a balance of…
dave88
  • 312
  • 5
  • 14
0
votes
1 answer

Re-size a Placeable Metafile

I know that standard WMF file uses an 18-byte header followed by GDI command records. A simple web search tells me that : "There are two additional WMF variations that place another header in front of the standard header. A Placeable Metafile uses a…
MHOOS
  • 5,146
  • 11
  • 39
  • 74
0
votes
1 answer

TMetafileCanvas example

I intend to use TMetafileCanvas so I have started to find example. On Embarcadero side I have find the following example: var MyMetafile: TMetafile; procedure TForm1.Button1Click(Sender: TObject); begin MyMetafile := TMetafile.Create; with…
GJ.
  • 10,810
  • 2
  • 45
  • 62
0
votes
1 answer

Use Graphic.DrawLines(Pen pen, Points points) for Metafile, the picture cannot open when the count of points is large

I have a problem with a GDI+ metafile. I want to save a metafile by graphic. It works well when the point count is 10000 and the saved metafile can be opened. But when the point count is large (e.g. count = 10000000), the metafile cannot be opened…
0
votes
1 answer

C++ Creating enhanced metafile results in an empty file

I'm trying to create an enhanced metafile like this: // Obtain a handle to a reference device context. HDC hdcRef = GetDC(hwnd); // Determine the picture frame dimensions. int iWidthMM = GetDeviceCaps(hdcRef, HORZSIZE); int iHeightMM =…
tube-builder
  • 686
  • 1
  • 13
  • 29
0
votes
2 answers

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
  • 7
  • 3
0
votes
1 answer

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 other question, as I got the answer to the Polyline.…
GdiHelp
  • 7
  • 3
0
votes
3 answers

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 to define the proper struct? This is the…
GdiHelp
  • 7
  • 3
0
votes
2 answers

Storing TBitmap in TMetaFile for smooth scaling in RTF doubles the image size

The RTF image support is very limited (Windows support, not just in Delphi), other formats than bitmaps and metafiles work but are not displayed correctly by RichEdit control. One thing I noticed is when Microsoft Word image is copied and pasted…
too
  • 3,009
  • 4
  • 37
  • 51
0
votes
1 answer

Delphi, QR, WMF

I got a "new job" to "archive" some data with QR Filter. When the data structure modified and saved to database then we start a "silent printing" with WMF filter, I catch the files, and I store them all in log record, in a DataBase BLOB. Everything…
durumdara
  • 3,411
  • 4
  • 43
  • 71
0
votes
3 answers

Extract images from Windows EMF during EnumEnhMetaFile parse?

A program I am modifying converts EMF files to a different format (SVG). It does this with EnumEnhMetaFile() which calls the program's parsing routine for each record of the EMF. That works great for the vector stuff. However, it also needs to be…
mathog
  • 345
  • 3
  • 11