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 1:59: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:34:41 AM(UTC)

Ibrahim  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 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:40: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:01:04 AM(UTC)

Ibrahim  
Guest

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 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 38 time(s).
 
#5 Posted : Thursday, February 21, 2013 11:11: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-2024, Yet Another Forum.NET
This page was generated in 0.158 seconds.