Hi Jose
> I need to redimension the document size to exact W: 8.5" x H: 11.7"
The formulas for DPI are as follows:
dpiX := widthPixels div widthInches;
dpiY := heightPixels div heightInches;
widthPixels := widthInches * dpiX ;
heightPixels := heightInches * dpiY;
widthInches := widthPixels div dpiX ;
heightInches := heightPixels div dpiY;
// Set image dimensions to 8.5 x 11.7"
ImageEnView1.IO.Params.DpiX := Round( ImageEnView1.IO.Params.Width / 8.5 );
ImageEnView1.IO.Params.DpiY := Round( ImageEnView1.IO.Params.Height / 11.7 );
> I too need to change the bit depth from 24bits to 8bits.
// Set pixel format to 8bit gray-scale
ImageEnView1.IEBitmap.PixelFormat := ie8g;
ImageEnView1.Update();
Nigel
Xequte Software
www.imageen.com