wmf

Capturing the desktop with Windows Media Format(WMF)

I am using Windows Media Format SDK to capture the desktop in real time and save it in a WMV file (actually this is an oversimplification of my project, but this is the relevant part). For encoding, I am using the Windows Media Video 9 Screen codec because it is very efficient for screen captures and because it is available to practicall...

How to overlay or watermark a picture in windows media player

I working on a distributed mediaplayer that uses the windows media player component. Now the customer asks me if its possible to have their logo overlayed on the media played instead of them having to render every movie with the logotype. I have google it and it seems like I can use a directshow filter to do this, but I havent found any...

Does WPF support reading/writing WMF/EMF files natively?

Can Windows Presentation Foundation read/write WMF/EMF files without having to use WinForms Interop or Win32. If it does not, what is the reason? ...

How to draw smooth images with C#?

I'm trying to draw images on a C# form (in PictureBoxes, as well as using Graphics.DrawImage()), and am looking for a way to draw them smooth. The images must be a format that supports transparency, so PNG, GIF, SVG, and WMF. C# doesn't support SVG files out of the box, and I haven't found a good third-party library to use (I found Svg...

Save metafile in C#

If I have a wmf or emf image in System.Drawing.Image, is there a way to save the metafile data with c# without rendering it as a bitmap? Calling Image.Save will render it to a bitmap and I want to keep the original data so that it would still be a valid .wmf or .emf format file. ...

Print EMF (WMF) from the Command Line using SHIMGVW.DLL

For Windows XP / Windows Server 2003 I'm trying to print an EMF(or WMF) file format to the virtual printer "Microsoft XPS Document Writer" using Windows Picture and Fax Viewer (shimgvw.dll) from the command line. I want the resulting XPS to be in vector format, like the WMF/EMF is. It works with all image formats except WMF and EMF...

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 etc, some areas of that source files are missing. I can't really pin it down, but it -se...

How can I convert a WMF image to PNG or JPG on Windows using Perl?

By any chance is anyone aware of a Perl module that will allow a WMF image to be converted over to the PNG or JPEG format? I searched CPAN, but did not come across anything. Due to installation limitations, must be a Perl module and work on Windows. ...

C# - Encode ASF with a custom data stream

Hi all. I'm trying to create an ASF file and instead of using sound or video data I want to create a stream made of custom packets with binary data. Can someone provide a code example of a couple of things : 1) setting up a profile. 2) configuring a custom stream 3) inserting custom packets into the stream. Much appreciated. Thanks! ...

Creating ASF file with custom stream. Help!

Hi All I am trying to create an ASF file using 3 streams : 1) A regular script stream 2) A regular Audio stream (WaveEx) 3) A custom stream consisting of packets that represent a certain kind of compressed screen data (Motorolla Netopia if you are familiar with it). The data is just a byte[] array. Writing the first 2 streams wo...

WMF / EMF File Format conversion C#

In my program, I have a requirement to "playback" or "parse" windows metafiles (WMF and EMF). I have dug through MSDN and Google, and the closest I have come is the Graphics. EnumerateMetafile method. I can get it to work, in that my EnumerateMetafileProc callback is called, and I can then call PlayRecord. What is missing, is how to get ...

Generate vector EMF/WMF (Windows Metafile) clipboard content from Qt 4.5

We are moving a large codebase from GDI to QPainter. One thing we used to get on Windows easily was the EMF clipboard format, which enabled customers to manipulate their pasted output in other programs (like Office) in a vector format. It's easy for us to produce bitmaps from Qt into EMF, but that really doesn't give us back the editabi...

How can I convert a WMF picture to GIF or PNG with Delphi?

Is there a way to convert a WMF picture to GIF or PNG with the Delphi 2009 (or newer) run time libraries? If not, which image conversion library would you recommend? ...

WMF image data validation?

There is an image capturing device which gives its output in wmf. This output is stored in the database directly. We have cases where at times some of these images do not appear on a web page in IE. But if we right click on the page we are able to save the image on to the hard disk; meaning the image does exist on the page, but does not ...

Windows Media Foundation: How to create a "movie" from a set of images.

My WPF application is generating up to 30 images per second and I need an efficient way to compress this stream in real time or in some post-processing step. I am looking into WMF mostly because of MP4/H264 compression but I could not find any sample code or tutorial... Any pointers? Thanks. ...

Decompress "wmz" file

Hi, When we try to save msword doc file as html file we get "wmz" files for the math equation objects. I tried decompressing the wmz file and saving the content as jpg. I can open this jpg file in the "Microsoft Picture manager" properly. But trying to open the file in browser displays the error message "The image cannot be displayed, ...

WMF transparency in IE8, white becomes transparent

Greetings, I am trying to display WMF and EMF images within IE8. The picture is rendered, but sadly all of the white parts in the picture becomes transparent. I am not talking about the background, and I do not want a non-alpha image. I specifically colored a few fields of my images white, but they are incorrectly rendered in IE8. When v...