This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, October 20, 2009 8:46:41 AM(UTC)
Groups: Registered
Posts: 22
I'm using LEADTOOLS C#.NET v16.5.
I want to show a label that has the current Window Width and Center for the selected image in realtime. How do I get the current width and center for an image?
I see the GetDefaultWindowLevelValues() method in a MedicalViewerCell, but I don't see a way to get the current values (ie: when the user is mouse dragging the WindowLevel action across the image).
-Sarkis-
#2
Posted
:
Tuesday, October 20, 2009 9:04:01 AM(UTC)
Groups: Registered
Posts: 22
Ok, so here's what I've figured out so far...
First I set a tag w/ the WindowLevelData type:
mvMainImage.Cells[0].ApplyActionOnMove = true;
mvMainImage.Cells[0].SetTag(5, MedicalViewerTagAlignment.BottomRight, MedicalViewerTagType.WindowLevelData);
Then when I want the info:
MedicalViewerTagInformation info = mvMainImage.Cells[0].GetTag(5, MedicalViewerTagAlignment.BottomRight);
And then just parse out the two values from the info.Text property.
Is this the best way to do this?
-Sarkis-
#3
Posted
:
Wednesday, October 21, 2009 6:44:56 AM(UTC)
Groups: Guests
Posts: 3,022
Was thanked: 2 time(s) in 2 post(s)
Sarkis,
You should be able to get the desired result using as follows:
MedicalViewerWindowLevel wl = GetActionProperties(WindowLevel) as MedicalViewerWindowLevel;
#4
Posted
:
Wednesday, October 21, 2009 10:30:31 AM(UTC)
Groups: Registered
Posts: 22
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.