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, October 20, 2009 8:46:41 AM(UTC)
seinarsson

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-
 

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 : Tuesday, October 20, 2009 9:04:01 AM(UTC)
seinarsson

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)

Adam Boulad  
Guest

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)
seinarsson

Groups: Registered
Posts: 22


Thanks!

-Sarkis-
 
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.095 seconds.