This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Sunday, September 28, 2008 4:56:44 AM(UTC)
Groups: Registered
Posts: 5
OK.
Now If I want my Initial Image to be larger than 1.5 time(also for the case I want it to be smaller than 1.5). What should I write code.
Now is the code of Error when I want to Scale the Image to be larger than 1.5 time.
---------------------------------------------
MedicalViewerScale scale = (MedicalViewerScale)_medicalViewer.GetActionProperties(MedicalViewerActionType.Scale, CellIndex);
scale.Scale *=1.5;//-->Should be Error because Scale is an Integer.
_medicalViewer.SetActionProperties(MedicalViewerActionType.Scale, scale, CellIndex);
---------------------------------------------
Besides, I don't know how to make my Image to the MedicalViewerScaleMode.Normal ( Fit, Fitwidth) . Because new DLL does not support it.
-->Can you write sample code to do that for me!
--------------------------------------
Thanks in advance
#2
Posted
:
Monday, September 29, 2008 1:39:59 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
If you would like to scale the Image to be larger than 1.5 times, you need to set the MedicalViewerScale.Scale property to 150 as follows:
+-----------------+
MedicalViewerScale scale = (MedicalViewerScale)_medicalViewer.GetActionProperties(MedicalViewerActionType.Scale,
CellIndex)\;
scale.Scale *=1.5\;//-->Should be Error because Scale is an Integer.
_medicalViewer.SetActionProperties(MedicalViewerActionType.Scale, scale, CellIndex)\;
+-----------------+
To scale the image to normal mode, you need to set the MedicalViewerScale.Scale property to 100 and FitImageToCell property to false.
To fit the image, you can use the FitImageToCell property. This property changes the scale of the image by making the base image width for example equal to the width of the cell. Thus, if you scaled the image up to 200% and FitImageToCell = TRUE, the image width will be (twice the width of the CELL).
In V16 there is a new method called MedicalViewerCell.SetScaleMode which will do exactly what you are asking for.
Thanks,
Maen Badwan
LEADTOOLS Technical Support
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.