LEADTOOLS Support
Imaging
Imaging SDK Questions
MultiscaleEnhancementCommand with Scrollbar
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Monday, May 21, 2012 1:18:18 AM(UTC)
Groups: Registered
Posts: 34
Hi,
Is there anyway I could control MultiscaleEnhancementCommand using Scrollbar??
thanks
#2
Posted
:
Monday, May 21, 2012 6:49:37 AM(UTC)
Groups: Registered, Tech Support
Posts: 179
MultiscaleEnhancementCommand is processor-intensive unless the image is very small. It is better to run the command when the scrollbar is released. Don't run the command while scrolling or it will be unresponsive.
Also, since the command changes the image, you might have to store a temporary copy at the beginning to restore it whenever the user wants to change the scroll location.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
#3
Posted
:
Monday, May 21, 2012 10:55:46 PM(UTC)
Groups: Registered
Posts: 34
Hi,
Thanks for that :)
what is LTKRN10N.dll? I believe its Leadtools, but what components are in it? Is it the whole package of Leadtools Version. I saw it an folder of an exe. software my boss assigned me to do.
Thanks a lot
#4
Posted
:
Tuesday, May 22, 2012 6:08:06 AM(UTC)
Groups: Registered
Posts: 256
Bnvelarde,
LTKRN in all versions of LEADTOOLS is the Kernel of the toolkit for CDLL/API and C++ (and some other interfaces such as Main OCX and old VCL controls). It contains the basic functions and structures. Without it, you can't use almost all of LEADTOOLS functions and features.
This file is the Kernel for LEADTOOLS v10.
Since your other questions are about newer versions of the toolkit and a totally different interface (.NET), I don't think you will need the old toolkit for your new project (such as with the MultiscaleEnhancementCommand class).
In general, you must NOT mix 2 versions of the toolkit in the same EXE project.
#5
Posted
:
Thursday, May 24, 2012 11:34:44 PM(UTC)
Groups: Registered
Posts: 34
Hi,
I really can't move on to my work in the MultiscaleEchancementCommand. I don't know how to operate it with the scrollbar. My boss is demanding for this one.
I tried this code:
Private Sub hsLine_Scroll(ByVal sender As System.Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles hsLine.Scroll
Dim cmd As MultiscaleEnhancementCommand = New MultiscaleEnhancementCommand()
cmd.Contrast = 0
cmd.EdgeCoefficient = hsLine.Value - 100
cmd.EdgeLevels = -1
cmd.Flags = MultiscaleEnhancementCommandFlags.EdgeEnhancement
cmd.LatitudeCoefficient = -1
cmd.LatitudeLevels = -1
cmd.Type = MultiscaleEnhancementCommandType.Gaussian
cmd.Run(_rasterImage.Image)
End Sub
and other possible way I could think but I only end up in an error...
#6
Posted
:
Sunday, May 27, 2012 3:54:39 AM(UTC)
Groups: Registered, Tech Support
Posts: 179
As I told you, MultiscaleEnhancementCommand is processor-intensive. In your code, you are applying the command directly when the scrolling event is triggered. It's not recommended to run the command while scrolling because it will be unresponsive. You can call the MultiscaleEnhancementCommand when clicking a button on the dialog (you can change the name of the button to "Apply"), so that the user can click the button after scrolling the scrollbar.
Mohamed Abedallah
Developer Support Engineer
LEAD Technologies, Inc.
LEADTOOLS Support
Imaging
Imaging SDK Questions
MultiscaleEnhancementCommand with Scrollbar
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.