Rescale(DicomViewer,Int32,Boolean,ScaleMode) Method
In This Topic
Transform a label from viewer coordinates to the chosen image scaling type
Syntax
'Declaration
Public Overloads Sub Rescale( _
ByVal As DicomViewer, _
ByVal As Integer, _
ByVal As Boolean, _
ByVal As ScaleMode _
)
'Usage
Dim instance As DicomLabel
Dim Viewer As DicomViewer
Dim Index As Integer
Dim IsInViewer As Boolean
Dim NewScaleMode As ScaleMode
instance.Rescale(Viewer, Index, IsInViewer, NewScaleMode)
public void Rescale(
DicomViewer ,
int ,
bool ,
ScaleMode
)
public:
void Rescale(
DicomViewer^ ,
int ,
bool ,
ScaleMode
)
Parameters
- Viewer
- The viewer the label is currently being shown on
- Index
-
The index of the image within that viewer to which the label is intended to be
applied
- IsInViewer
-
If true, the the current position is assumed to be as if the label is
displayed using Viewer.DrawLabel or in the viewer's collection, and if false
it is assumed to be in the Image's Labels collection.
- NewScaleMode
- The new ScaleMode property for the label
Requirements
Target Platforms: .NET CLR 3.5 or higher
See Also