GetTickSpacing(Boolean,DicomImage,DicomViewer) Method
In This Topic
Returns the size of the spacing used in a DicomLabel of type Ruler
Syntax
'Declaration
Public Function GetTickSpacing( _
ByVal As System.Boolean, _
ByVal As DicomImage, _
ByVal As DicomViewer _
) As System.Single
'Usage
Dim instance As DicomLabel
Dim MajorTicks As System.Boolean
Dim Image As DicomImage
Dim Viewer As DicomViewer
Dim value As System.Single
value = instance.GetTickSpacing(MajorTicks, Image, Viewer)
public System.float GetTickSpacing(
System.bool ,
DicomImage ,
DicomViewer
)
public function GetTickSpacing(
: System.Boolean;
: DicomImage;
: DicomViewer
): System.Single;
public function GetTickSpacing(
: System.boolean,
: DicomImage,
: DicomViewer
) : System.float;
public: System.float GetTickSpacing(
System.bool ,
DicomImage* ,
DicomViewer*
)
public:
System.float GetTickSpacing(
System.bool ,
DicomImage^ ,
DicomViewer^
)
Parameters
- MajorTicks
-
If MajorTicks is true, then the value is the spacing between large marks, and if
false, it will be the small mark spacing. The large mark spacing is always exactly 2, 5
or 10 time the small mark spacing.
- Image
- The image from which the pixel data is taken for the calculations
- Viewer
- The Viewer in which the image is displayed
Return Value
A float number as the spacing between tick marks on the ruler
displayed
Requirements
Target Platforms: .NET CLR 4.8 or higher
See Also