This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Friday, May 16, 2008 6:46:55 PM(UTC)
Groups: Registered
Posts: 17
Hello.
Environment
- VB .Net 2005
- LeadTool V15 ( 15.0.1.3)
I have a problem about GrayscaleMode(RasterImage Class)
I Load TIF File(16bit) and run ApplyLinearVOILut Command.
At First, grayscalemode property of the image was "OrderedNormal"
After run ApplyLinearVoiLut Command , grayscalemode property change into "NotOrdered" or "OrderedInverse"
I make this code under MouseMoveEvent
this is code __________________________________
Dim VoiCmd As ApplyLinearVoiLookupTableCommand = New ApplyLinearVoiLookupTableCommand()
Debug.Print("Image Grayscale Order : " + Image.GrayscaleMode.ToString)
If _IsReverse Then 'Check inverted
VoiCmd.Flags = VoiLookupTableCommandFlags.ReverseOrder
Else
VoiCmd.Flags = VoiLookupTableCommandFlags.UpdateMinMax
End If
VoiCmd.Center = _Level
VoiCmd.Width = _Width
VoiCmd.Run(Image)
I want to keep grayscalemode of the image.
Please help me.
Neo.Ko attached the following image(s):
#2
Posted
:
Sunday, May 18, 2008 5:05:33 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
To keep the GrayscaleMode of the image, you need to use the GrayscaleCommand after calling the ApplyLinearVoiLookupTableCommand:
+-----+
Dim gr As New Leadtools.ImageProcessing.GrayscaleCommand(16)
gr.Run(RasterImageViewer1.Image)
+-----+
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.