This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Thursday, March 4, 2010 7:52:43 AM(UTC)
Groups: Registered
Posts: 3
Hi all,
i have a question... if I put a "RasterImage" in a "RasterThumbnailBrowser", using:
Items.Add(new RasterImageListItem(myRasterImage, 1, "test"))
Is there a way, to have the raster image back?
more clearly:
- if i call "myRasterThumbnailBrowser.SelectedItems[0].Image" i obtain the "thumbnailed" version of the original "myRasterImage". How can i do, to obtanin the "full-sized / original" rasterImage, from the selected item?
thanks,
Andrea.
#2
Posted
:
Friday, March 5, 2010 11:23:08 AM(UTC)
Groups: Tech Support
Posts: 366
Thanks: 1 times
Was thanked: 4 time(s) in 4 post(s)
Hello Andrea,
Are you looking to get the "full-sized" image so that it can be displayed in a RasterImageViewer? If so, you are likely going to want to reload the image from the hard-disk using RasterCodecs. Unless you are only going to have a few thumbnails loaded in the Thumbnail Browser, you will quickly run into an issue of not having enough memory for your application because all of your images are full-size. The common practive for this is to load a small image (thumbnail) for use in the Thumbnail browser, and when a user tries to load an image, you will use the original file name within the item to load the image again as a full-size image.
Having said that, here is a small example of how you could load a few full-sized images into the ThumbnailBrowser/RasterImageList control, and then display them in a RasterImageViewer when selected by the user.
If you have any further questions or concerns regarding this, please let me know.
Walter Bates
Senior Support Engineer
LEAD Technologies, Inc.
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.