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 : Wednesday, May 23, 2012 3:56:26 AM(UTC)
Ahmad_Hamdan_iLead

Groups: Registered
Posts: 11


Suppose that I have a RasterImage (A) with 7 pages
and i have another RasterImage (B) with three pages,
how can insert the three pages from B to A at page 3 of A,

I have tried using InsertPages with no luck, i keep getting an exception when i do the following

Dim ind as int32=1
dim startindex as int32=3
A.InsertPages(ind,B,startIndex,-1)

My understanding of the method is that startIndex is the position from which we wish to insert at in A, Am I right?
 

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 : Wednesday, May 23, 2012 4:46:21 AM(UTC)
Ahmad_Hamdan_iLead

Groups: Registered
Posts: 11


What i mean by not working, is that i keep getting an exception on Start Index saying Invalid Page Index
 
#3 Posted : Wednesday, May 23, 2012 6:01:43 AM(UTC)
Maen Hasan

Groups: Registered, Tech Support
Posts: 1,326

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

startindex represents the index of the page in image B that you want to start with when inserting image B into image A. The following code inserts the three pages from B to A after page number 3 of A:
+---------------------+
int ind =3;
int startindex =1;
ImageA.InsertPages(ind, ImageB, startindex, -1);
+---------------------+

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.047 seconds.