views:

2203

answers:

3

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

A: 

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);
Skurmedel
The question was about changing the resolution WITHOUT resizing. The article is all about resizing.
Mark Ransom
Okay, hehe. Guess I'm blind today.
Skurmedel
On the other hand, with some modification he could use some of the stuff in the article to do it.
Skurmedel
A: 

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

Mark Ransom
A: 

Check out the Bitmap.SetResolution Method.

Phaedrus