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 : Tuesday, November 29, 2005 5:31:48 PM(UTC)

Yau  
Yau

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?
 

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, December 7, 2005 5:05:42 AM(UTC)

Amin  
Amin

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.
LEAD Logo
 
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.059 seconds.