T O P I C R E V I E W |
Dany |
Posted - Jul 23 2018 : 12:29:57 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!
|
4 L A T E S T R E P L I E S (Newest First) |
Dany |
Posted - Jul 23 2018 : 13:47:52 Thank you!. |
w2m |
Posted - Jul 23 2018 : 13:31:09 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 |
Dany |
Posted - Jul 23 2018 : 13:24:17 Yes Bill, thank you, but ImageEnMView.Acquire?. The only way I see is by inserting in OnAcquireBitmap and then set Handled. Right? |
w2m |
Posted - Jul 23 2018 : 13:04:05 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 |