This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Wednesday, February 20, 2013 1:59:24 AM(UTC)
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.
#2
Posted
:
Wednesday, February 20, 2013 5:34:41 AM(UTC)
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)
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)
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.
#5
Posted
:
Thursday, February 21, 2013 11:11:12 PM(UTC)
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.