LEADTOOLS Support
Imaging
Imaging SDK Examples
How to RemoveAllPages from the IRasterImage object of the RasterImageViewer
#1
Posted
:
Friday, September 30, 2005 12:41:19 PM(UTC)
Groups: Registered, Tech Support
Posts: 207
Was thanked: 3 time(s) in 3 post(s)
This VB.NET example shows how one would empty the RasterImageViewer's Image object. If the IRasterImage object contains more than one page, RemoveAllPages will remove all pages excluding the IRasterImage itself, so the PageCount will still show 1 page. To free the object, you set it equal to Nothing.
Should you call RemoveAllPages when the PageCount equals 1 you will get an error regarding the state of the object. This is because there are no pages for the function to remove.
How to use this example:
Load up some pages with the load button, then press RemoveAllPages to remove them. Next load one image, then call RemoveAllPages. You'll see that my code checks to see if the PageCount is equal to 1.
Travis Montgomery
Senior Sales Engineer
#2
Posted
:
Tuesday, March 27, 2012 11:56:33 PM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
I've updated this project to use the LEADTOOLS v17.5 in VB.NET using Visual Studio 2008. This project helps you to know how to delete all pages that been loaded by the user.
#3
Posted
:
Tuesday, March 27, 2012 11:57:25 PM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
The attachment includes the same project that uses LEADTOOLS v17.5 DLLs but in C# using Visual Studio 2008.
#4
Posted
:
Tuesday, May 23, 2017 1:30:31 PM(UTC)
Groups: Registered, Tech Support, Administrators
Posts: 70
Was thanked: 4 time(s) in 4 post(s)
Updated to to use LEADTOOLS v19 in C# using Visual Studio 2017.
Duncan Quirk
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Examples
How to RemoveAllPages from the IRasterImage object of the RasterImageViewer
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.