Question

I need to modify the vertical and horizontal resolutions without changing the image dimensions.

Was it helpful?

Solution

Check out the Bitmap.SetResolution Method.

OTHER TIPS

If all you have is GDI, have a look at this link.

You can save the Bitmap to a JPEG file using this snippet:

bmp.Save("picture.jpg", System.Drawing.Imaging.ImageFormat.Jpeg);

The resolution is contained in EXIF tags within the JPEG file.

Here's one article that gives source code for doing similar things in C#:

http://www.codeproject.com/KB/graphics/EXIF_tag_Editor.aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top