I want image converter code in c#
i want bmp,jpg, all related image formate converter in c# plz give me code related that
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
Phani Bhushan21 reputationPosted Jan 23, 2013, 7:03 PM EST
or
public byte[] imageToByteArray(System.Drawing.Image img)
{
MemoryStream ms = new MemoryStream();
img.Save(ms,System.Drawing.Imaging.ImageFormat.GIF);
return ms.ToArray();
}
arron lee42 reputationPosted Jul 11, 2013, 1:17 AM EDT
using System.IO; using System.Drawing.Printing; using Yiigo.Imaging; using Yiigo.Imaging.Processing; using Yiigo.Imaging.Conversion; using YiigoImage Image = new YiigoImage(); // Convert image to byte array public void ConversionImagetoByte(); { MemoryStream image = new MemoryStream(); ImageID.Save(image, System.Drawing.Imaging.ImageFormat.Png); return ms.ToByte(); } public void ConversionImagetoByte(System.Drawing.Image, ImageID); // Convert byte array to image public void ConversionBytetoImage(); { MemoryStream image = new MemoryStream(ByteArrayID); Image returnImage = Image.FromStream(image); return returnImage; } public Image ConversionBytetoImage(ByteArrayID); As for myself, I used to process PDF files with the help of another PDF SDK. It is just one of many but I do appreciate its simple way of processing. Even though I only tried its free trial package to convert images and didn't check the cost and licensing conditions, it works great for me. And here is some tutorial on how to scan, process, view document image using C#.NET. Share with you. Good luck. Best regards, ArronSanjeeb LenkaRank #301 · 8.3K reputationPosted Jul 11, 2013, 1:22 AM EDT
http://www.codeproject.com/Articles/1396/A-C-Image-Converter
Layla Lawrence2 reputationPosted Jan 30, 2014, 4:44 AM EST
But that project in Sanjeeb's project is a good start I think
Jony Green103 reputationPosted Oct 19, 2015, 10:43 PM EDT