To Change an Image into different formats?
-
I want to change an image to different sizes and then store it. I have an image of normal size and I want to create Thumbnail and Enlarges Image of this image and store them. How can I do it using classes in .NET framework? Thanks, Sandy
-
I want to change an image to different sizes and then store it. I have an image of normal size and I want to create Thumbnail and Enlarges Image of this image and store them. How can I do it using classes in .NET framework? Thanks, Sandy
Hi, Below code for image resizing and saving in C#
System.Drawing.Image imgResize;
System.Drawing.Image tempImage;string strPath;
strPath = "c:/personal/test.jpg";
imgResize = System.Drawing.Image.FromFile(strPath);
//Below code reducing the image width and height to increase u can multiply with numerals
tempImage = new Bitmap(imgResize,imgResize.Width / 3, imgResize.Height / 3);string strFilePath = "newfolderpath/imagename.jpg";
tempImage.Save(strFilePath,ImageFormat.Jpeg);
Hope this helps u...:)
-
Hi, Below code for image resizing and saving in C#
System.Drawing.Image imgResize;
System.Drawing.Image tempImage;string strPath;
strPath = "c:/personal/test.jpg";
imgResize = System.Drawing.Image.FromFile(strPath);
//Below code reducing the image width and height to increase u can multiply with numerals
tempImage = new Bitmap(imgResize,imgResize.Width / 3, imgResize.Height / 3);string strFilePath = "newfolderpath/imagename.jpg";
tempImage.Save(strFilePath,ImageFormat.Jpeg);
Hope this helps u...:)
thanx for the reply..... It worked for resizing he images Thanks, Sandy