ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Acquire and insert position
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Dany

67 Posts

Posted - Jul 23 2018 :  12:29:57  Show Profile  Reply
Hi;

How can we select the possition in where ImageEnMView.Acquire will insert the result?.

It seems that after SelectedImage become > -1 it is not possible to set SelectedImage := -1 anymore. Also, it is not possible to set SelectedImage := ImageCount. And if I set SelectedImage := (ImageCount-1) then the image will be inserted before the last one.

So, I can't find how to insert the next aquired page after the last one, when manualy scan pages one by one.

Thank you!


w2m

USA
1990 Posts

Posted - Jul 23 2018 :  13:04:05  Show Profile  Reply
To Add a image as the last one use ImageEnMView1.AppendImage.
AppendImage appends a new image at last position in the list and returns the new image position.

To Insert an image before the SelectedImage use ImageEnMView1.InsertImage.
InsertImage inserts a new image at position, idx (where 0 is the first and ImageCount-1 is the last.

You can not set SelectedImage := ImageCount because the ImageEnMView indexes are 0 based, so use ImageEnMView1.InsertImage(index) where the first image index is 0 and the last image index is ImageCount-1.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

Dany

67 Posts

Posted - Jul 23 2018 :  13:24:17  Show Profile  Reply
Yes Bill, thank you, but ImageEnMView.Acquire?. The only way I see is by inserting in OnAcquireBitmap and then set Handled. Right?
Go to Top of Page

w2m

USA
1990 Posts

Posted - Jul 23 2018 :  13:31:09  Show Profile  Reply
ImageEnMView1.SelectedImage := ImageEnMView1.ImageCount - 1;
If no image is selected (see Deselect) then Acquire will append after the last image.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

Dany

67 Posts

Posted - Jul 23 2018 :  13:47:52  Show Profile  Reply
Thank you!.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: