LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Using a progress bar to show the progress as an Image is loading.
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, November 29, 2005 5:31:48 PM(UTC)
Groups: Registered
Posts: 2
I'm wondering if there is a method to access the progress of leadtool as it is loading an image?
I use RasterImageViewer to load and view my images in my C# projects.
But some images take a few seconds to load, and sometimes it makes it
look like my application has crashed. I was wondering if there is a
facility to inquire leadtools it's current progress in loading an image
so I can use that value in a separate thread to update the progress bar
in a separate window. Also does Leadtools already have a facility to
create a progress bar as it loads an image?
#2
Posted
:
Wednesday, December 7, 2005 5:05:42 AM(UTC)
Groups: Manager, Tech Support
Posts: 367
Was thanked: 1 time(s) in 1 post(s)
We don't have a progress bar control, but you can use a number of other controls, such as a track bar or even a scroll bar.
Getting the progress during loading depends on the file format. For
most formats, you can use the LoadImage event. Here's a simple code
snippet that shows how to calculate the progress percentage (if the
image file format supports that):
Dim WithEvents LCodecs As New Leadtools.Codecs.RasterCodecs()
Private Sub LCodecs_LoadImage(ByVal sender As Object, ByVal e As
Leadtools.Codecs.CodecsLoadImageEventArgs) Handles LCodecs.LoadImage
Dim PagePercent as Integer = 100 * (e.Row+1) / e.Info.Height
End Sub
Edited by user Thursday, December 8, 2016 2:35:05 PM(UTC)
| Reason: Not specified
Amin Dodin
Senior Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Questions
Re: Using a progress bar to show the progress as an Image is loading.
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.