Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > Software > Help in coverting image formats

Reply
Thread Tools

Help in coverting image formats

 
 
MostafaSayed MostafaSayed is offline
Junior Member
Join Date: Jun 2007
Posts: 3
 
      06-25-2007
I work in image processing program and I have a problem in converting image from format to another.
The first problem
I converted the Image file to Icon through 2 ways but still have problems these 2 ways are:
1-
Bitmap icon =new Bitmap (ImagePath);
icon.Save(targetfilename, ImageFormat.Icon);
This way don't work correctly
2-
Bitmap bitmap = new Bitmap(ImagePath);
Icon ico = Icon.FromHandle(bitmap.GetHicon());
FileStream fs = new FileStream(targetfilename, FileMode.OpenOrCreate);
ico.Save(fs);
fs.Close();
This way make colors of the output icon change.
How can I convert this type?

The second problem:
When I convert to gif file as follow:
Bitmap bitmap = new Bitmap(ImagePath);
bitmap.Save(targetFileName, ImageFormat.Gif);
This way make low resolution, and if the source image doesnot have background, the output file will be with background in the converted formats (.Gif, .Bmp, .Jpeg)
How can I convert this type?


The third problem:
The formats Wmf, Exif, Emf donot have Encoder.
How can I convert them?

Please tell me wat is the wrong in my code
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is MKV formats better than other video formats? helena68 Software 3 11-26-2008 07:57 AM
Detailed Analysis of the file formats for M$ Office 2007 -"Microsoft Office XML Formats? Defective by design" Jonathan Walker NZ Computing 1 08-26-2007 03:43 AM
Help in coverting image formats MostafaSayed ASP .Net 0 06-25-2007 08:48 AM
Help in coverting image formats MostafaSayed ASP .Net 0 06-25-2007 08:45 AM
CyberLink Supports UDF 2.5/2.6 Formats For Blu-ray and HD DVD next generation of disc formats. Allan DVD Video 0 07-15-2005 07:43 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57