I've a picture that, according to Windows properties, has 96 dpi. But, after loading it just like this:
Code: Select all
var gdImage = new GdPictureImaging();
int imageId = gdImage.CreateGdPictureImageFromFile(@"C:\Users\paquicoli\Dropbox\cavalos\000085db.jpeg");
var horResolution = gdImage.GetHorizontalResolution(imageId);
var verResolution = gdImage.GetVerticalResolution(imageId);
gdImage.SaveAsJPEG(imageId, @"d:\paulo\cavalo.jpg", 100,true);
gdImage.ReleaseGdPictureImage(imageId);
Thank you!