Welcome Guest! To enable all features, please Login or Register.

Notification

Icon
Error

Options
View
Last Go to last post Unread Go to first unread post
#1 Posted : Sunday, August 13, 2006 10:19:23 PM(UTC)

gravity  
gravity

Groups: Registered
Posts: 4


Hi

I need to support printing of multiple images along with header and footer. number of images can vary between 1 - 18 per page.

Can it be done automatically in Leadtools, like can i create one page out of multiple images, and leadtools can take care of scaling, positioning, etc.

Other option is to manually create one image and then add all teh images to it.

Need hep urgently.

thanks

Gravity

 

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Tuesday, August 15, 2006 1:07:42 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

What is the programming interface (COM, .Net, API, OCX, etc.) that you use?

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
#3 Posted : Wednesday, August 16, 2006 7:44:25 PM(UTC)

gravity  
gravity

Groups: Registered
Posts: 4


.net
 
#4 Posted : Tuesday, August 22, 2006 12:02:14 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

Was thanked: 1 time(s) in 1 post(s)

Hello,

Before printing the images, you
need to create one bog image to hold the images that you want to print.
You can create a new image by using the RasterImageCreateParameters Structure. The code (from the documentation as follows):

+------------------------------+
using Leadtools;
     private IRasterImage CreateTest(int Width, int Height)
     {
        RasterImageCreateParameters CreateParameters = new RasterImageCreateParameters();
        CreateParameters.BitsPerPixel = 24;
        CreateParameters.ManagedBuffers = 0;
        CreateParameters.ManagedTiles = 0;
        CreateParameters.DitheringMethod = RasterDitheringMethod.None;
        CreateParameters.Height = Height;
        CreateParameters.MaximumConventionalSize = 100 * 1024 * 1024;
        CreateParameters.MemoryFlags= RasterMemoryFlags.User;
        CreateParameters.NoRegionClip = true;
        CreateParameters.Order = RasterByteOrder.Bgr;
        CreateParameters.TemporaryDirectory = @"c:\";
        CreateParameters.Palette = null;
        CreateParameters.TiledThreshold = -25;
        CreateParameters.TileSize = 0;
        CreateParameters.ViewPerspective = RasterViewPerspective.TopLeft;
        CreateParameters.Width = Width;
        CreateParameters.XResolution = 0;
        CreateParameters.YResolution = 0;
        CreateParameters.UsePaletteAsLookupTable = false;
        CreateParameters.UserData = null;
        CreateParameters.UserMatchTable = null;
        //Create the image.
        IRasterImage LeadImage = new RasterImage(CreateParameters);
        if(LeadImage.IsAllocated)
           return (LeadImage);
        else
        {
           MessageBox.Show("Error, The create process failed. ", "Create Image");
           return(null);
        }
     }
+-------------------------------+

Now, if you want to fill the result image with white color, you need to call and use the FillCommand Class.
To merge and paste your images to the new created image, you need to use the CombineCommand Class.

After creating and combining the images, you can use the RasterImagePrinter Class to print the result IRasterImage.

For more information, please refer to the LEADTOOLS .Net documentation and read the following topics:
- RasterImageCreateParameters Structure.
- FillCommand Class
- CombineCommand Class
- RasterImagePrinter Class
- Print a Real Image Size in Inches

Thanks,
Maen Badwan
LEADTOOLS Technical Support
 
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2024, Yet Another Forum.NET
This page was generated in 0.076 seconds.