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 : Thursday, November 29, 2007 6:15:00 AM(UTC)

eosmann  
eosmann

Groups: Registered
Posts: 1


I could use a little clarification or direction to my problem using RasterImageList to display scan sets.  What I need to accomplish is I need to have a split viewer browser which contains a list of scan sets at the top a user can select and a RasterImageList to display those list on the bottom.   When a user clicks on a scan set from the list, I need to remove all the items in the RasterImageList viewer and replace them with all the images in the selected scanset.  Pretty simply concept, however I have found that if I use rasterImageList.Items.Clear(); to clear the list I also lose all the image data for all the items associated with the RasterImageList collection and can no longer display the images.   What I need is to reuse the control and reload the items as needed.   It appears that I need a new RasterImageList per each collection and therefore should swap the viewer but this doesn't make sense nor do I want to manage stacked controls.   I know there must be a reasonable and simply solution, I just can't seem to find it.

Any suggestions?
Thanks
Eric
 

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 : Friday, November 30, 2007 7:06:53 AM(UTC)

GregR  
GregR

Groups: Registered, Tech Support, Administrators
Posts: 766


I believe that you also sent an email about this same topic.  In the future, please only inquire about the same issue through one medium of support.  This will help ensure that you will not have multiple agents working on the same issue and gives you the best and most efficient support possible.

Let me make sure I'm understanding your goal first.  You are using a
RasterImageList to display multiple multi-page images.  When you click on an
image from the RasterImageList, you then want the viewer to contain all of the
pages of the image you just selected.  Eventually you want to go back to the
view with the multipage images which is where you are having trouble?

If that's the case, then here's a few ideas:
1.
manage stacked controls, but you don't want to do this which is
understandable...I don't like them either =)

2.
Make a backup copy of the first RasterImageListItemCollection (which is the
RasterImageList.Items property) before you clear the items and then load the
single pages.  When you want to go back you simply clear and then reassign.

3.
Write some kind of function that populates the RasterImageList control based
on either an array or RasterImage objects (for the first view) or a single
RasterImage object (for the single file view).  Of course, you still need to
keep a backup copy of your original array of images.

Basically, you just need some way of keeping track of what used to be in your
RasterImageList.  

Since you could be using a lot of memory, you also might want to consider only
loading or creating thumbnails to display in the RasterImageList (especially
for the first view) and then handle the SelectedIndexChanged event to load the
image and populate the control with it's multiple pages.
 
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-2020, Yet Another Forum.NET
This page was generated in 0.147 seconds.