Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Make bigger image into multiple tiffs.
Started by Ganesh at 06-09-2008 7:15. Topic has 4 replies.

Print Search « Previous Thread Next Thread »
  06-09-2008, 7:15
Ganesh is not online. Last active: 7/7/2008 10:30:01 AM Ganesh

Top 100 Posts
Joined on 01-08-2008
Posts 20
Make bigger image into mutiple tiffs - Urgent
Reply Quote
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.


Regards,

Ganesh.
   Report 
  06-09-2008, 7:40
Ganesh is not online. Last active: 7/7/2008 10:30:01 AM Ganesh

Top 100 Posts
Joined on 01-08-2008
Posts 20
Make bigger image into multiple tiffs.
Reply Quote
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 
  06-09-2008, 18:40
Walter is not online. Last active: 8/14/2008 10:30:23 AM Walter



Top 25 Posts
Joined on 04-14-2008
Charlotte, NC
Posts 64
Re: Make bigger image into multiple tiffs.
Reply Quote
Your current build is now out-of-date. I'd first recommend emailing support@leadtools.com with the company you work for, your serial number, and the registered developer's name, as well as a link to this post so that we can send you the download instructions for the latest patches.

When you say it needs to make multiple tiffs to cover it, do you mean that you want the image to be sliced into sections so that only parts of it can be viewed? If this is not what you mean, could you explain a little more what you mean by it needing to be multiple tiffs?

As far as the image being in the upper-left corner, are you referring to it being in the upper left corner of the Raster Image Viewer? If so, I would recommend checking out the RasterImage.SizeMode
Walter
Technical Support
LEADTOOLS
support@leadtools.com
   Report 
  06-10-2008, 7:14
Ganesh is not online. Last active: 7/7/2008 10:30:01 AM Ganesh

Top 100 Posts
Joined on 01-08-2008
Posts 20
Re: Make bigger image into multiple tiffs.
Reply Quote
Thanks for your reply.

1) For example if a image(DPI=300) width(3072) and height (2232) is bigger than 8.5X11 size then split the image into multiple tiffs. Each image size should be 8.5X11 not more than that.


2) Image should center on an 8.5X11, not only in RasterImageViewer.

It will helpfull if you can provide some examples.


Thanks

Ganesh.
   Report 
  06-10-2008, 16:14
Walter is not online. Last active: 8/14/2008 10:30:23 AM Walter



Top 25 Posts
Joined on 04-14-2008
Charlotte, NC
Posts 64
Re: Make bigger image into multiple tiffs.
Reply Quote
For splitting the image, I'd recommend using the CropCommand which is in the Leadtools.ImageProcessing namespace. This modifies the actual image, so I'd make a copy of it.

As far as centering the image, I still do not understand what it is that you are looking for. What other image viewer do you have in mind? Could you explain in more detail what it is that you are looking for?
Walter
Technical Support
LEADTOOLS
support@leadtools.com
   Report 
Post
LEAD Support Fo... » Developer » File Formats » Re: Make bigger image into multiple tiffs.

Powered by Community Server, by Telligent Systems