06-09-2008, 7:40
|
Ganesh
Joined on 01-08-2008
Posts 20
|
Make bigger image into multiple tiffs.
|
 
 
|
|
|
Hello,
If the image size is bigger than 8.5 X 11 it needs to make multiple tiifs to cover it. I am using the below code, but its converting into SINGLE image only.
RasterCodecs _codecs = new RasterCodecs();
IRasterImage loadImage = _codecs.Load(fileName, 2550, 3300, 0, 0, CodecsLoadByteOrder.Bgr, 1, -1);
loadImage.XResolution = 300;
loadImage.YResolution = 300;
string destFileName = Path.GetTempFileName();
_codecs.Save(loadImage, destFileName, RasterImageFormat.TifCcittGroup4, 1, 1, loadImage.PageCount,1, CodecsSavePageMode.Append);
Also, I would like to know how to make the image centered on an 8.5X11 image, it just sticks the images in the upper left corner.
It will be greatly helpful if you have provide some sample code to achive this.
Thanks in advance.
Note: using LeadTool version : 14.5.0.68 in Visual studio 2005 (C#)
Regards,
Ganesh.
|
|
|
|
|
Report
|
|
|
|