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, February 20, 2013 2:04:24 AM(UTC)

rad1  
rad1

Groups: Registered
Posts: 23


Hello,

I'm working on a WPF application that uses RasterImageViewer, and I'm looking for the way to load all pages from the RasterImage. Something like this:

ImageList.Items.AddRange(RasterImage.Pages);

Thanks for help.
 

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, February 20, 2013 5:39:41 AM(UTC)

Ibrahim  
Guest

Groups: Guests
Posts: 3,040

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

We don't have a ready function for this. But you can use a code like this:
===========================
for(int i=1; i<=rasterImage.Pages; ++i)
{
rasterImage.Page = i;
ImageList.Items.Add(rasterImage.Clone());
}
===========================
 
#3 Posted : Wednesday, February 20, 2013 5:45:13 AM(UTC)

rad1  
rad1

Groups: Registered
Posts: 23


Thinks for reply, but it doesn't work for me. I get this error:
LEADTOOLS does not support this Item

Can you send me a sample please?
 
#4 Posted : Thursday, February 21, 2013 12:06:04 AM(UTC)

Ibrahim  
Guest

Groups: Guests
Posts: 3,040

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

I've created a small WPF project that loads a multipage TIF into a RasterImage, and then display them on an ImageList. I'm attaching the project to this post. Please check it on your side, but make sure to change the path of the multipage image, and the reference path of the DLLs.

If you face problems, let me know.
File Attachment(s):
CsWPFImageList175.zip (9kb) downloaded 28 time(s).
 
#5 Posted : Thursday, February 21, 2013 11:16:12 PM(UTC)

rad1  
rad1

Groups: Registered
Posts: 23


Hello,

Thanks for help. I found the solution using RasterImageListItem instead of ImageListItem and it works well ;)

Regards.
 
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-2019, Yet Another Forum.NET
This page was generated in 0.137 seconds.