Represents the class that contains the properties of the scale action.
Syntax
Example
Change the Scale of an image
Visual Basic | Copy Code |
---|
<Test> _
Public Sub MedicalViewerScaleExample1()
Dim myForm As MedicalViewerForm = GetMedicalControl()
Dim medicalViewer As MedicalViewer = myForm.Viewer
Dim scale As MedicalViewerScale = CType(medicalViewer.GetActionProperties(MedicalViewerActionType.Scale, 0), MedicalViewerScale)
scale.Scale *= 2
medicalViewer.SetActionProperties(MedicalViewerActionType.Scale, scale, 0)
myForm.ShowDialog()
End Sub |
C# | Copy Code |
---|
public void MedicalViewerScaleExample1() { MedicalViewerForm myForm = GetMedicalControl(); MedicalViewer medicalViewer = myForm.Viewer; MedicalViewerScale scale = (MedicalViewerScale)medicalViewer.GetActionProperties(MedicalViewerActionType.Scale, 0); scale.Scale *= 2; medicalViewer.SetActionProperties(MedicalViewerActionType.Scale, scale, 0); myForm.ShowDialog(); } |
Remarks
Inheritance Hierarchy
Requirements
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also