G
Guest
Hi,
I am trying to convert a group of wmf files to gif files. Easy you'd think?
I'm using the following code:
Image img = Image.FromFile (this.tbxFilename.Text);
string filename = this.tbxFilename.Text.Replace ("wmf", "gif");
img.Save (filename, ImageFormat.Gif);
When I look at the gif, the background of it is black, where as in the wmf
it is white (or rather transparent).
I tried setting the trasparency via using a bitmap and that didn't work
(also black is one of the colours on the wmv so I didn't want to loose that
colour).
So how can I do this and are there any third party dlls that will work?
Look at http://www.bitbetter.com/samples/Hiking.wmf for an example, as the
background goes black if you try the code.
Any ideas?
Ian
I am trying to convert a group of wmf files to gif files. Easy you'd think?
I'm using the following code:
Image img = Image.FromFile (this.tbxFilename.Text);
string filename = this.tbxFilename.Text.Replace ("wmf", "gif");
img.Save (filename, ImageFormat.Gif);
When I look at the gif, the background of it is black, where as in the wmf
it is white (or rather transparent).
I tried setting the trasparency via using a bitmap and that didn't work
(also black is one of the colours on the wmv so I didn't want to loose that
colour).
So how can I do this and are there any third party dlls that will work?
Look at http://www.bitbetter.com/samples/Hiking.wmf for an example, as the
background goes black if you try the code.
Any ideas?
Ian