|
I am using Leadtools v15. Programming in C#, .Net 2.0. I'm opening some images (saved as TifJpeg), doing some manipulation, and resaving them in the same (hopefully) format. The problem is that the images are not saved back to the original resolution and compression. I've taken out all of the code that does any kind of manipulation so that I simply open the file and resave it and it still changes things. The size in bytes is changed and also (according to IrfanView) the resolution and size in cm is changed. I've pasted the code snippet below. There really isn't much to it. If I save it uncompressed (Tif) then it turns out fine, but is obviously much larger as well. Is there something simple (like setting the Save options) that I'm missing? Also, one of the requirements of the viewing software (3rd party) that we are using is that the horizontal and vertical resolution settings of the image be identical and this is not being maintained when I save the file.
Thanks,
Aaron
*****************************************************************************
Leadtools.Codecs.RasterCodecs codecs = null; Leadtools.RasterImage image = null;
try { codecs = new Leadtools.Codecs.RasterCodecs(); image = new Leadtools.RasterImage(codecs.Load(acFileName)); codecs.Save(image, acFileName, Leadtools.RasterImageFormat.TifJpeg, 0);
.......
}
***************************************************
|