Click or drag to resize

McSCalibrationSetCalibrationMarker Method

Set scale bar on the image in annotation overlay.

Namespace:  MediaCy.Addins.SCalibration
Assembly:  MediaCy.Addins.SCalibration (in MediaCy.Addins.SCalibration.dll) Version: 3.1.0.0
Syntax
VB
Public Sub SetCalibrationMarker ( 
	Optional bShowDialog As Boolean = false,
	Optional ovl As McGraphOverlay = Nothing,
	Optional ByRef outSize As SizeF = Nothing,
	Optional ByRef outPos As Integer = 0,
	Optional im As McImage = Nothing
)

Parameters

bShowDialog (Optional)
Type: SystemBoolean
ovl (Optional)
Type: MediaCy.IQL.Display.OverlaysMcGraphOverlay
outSize (Optional)
Type: System.DrawingSizeF
outPos (Optional)
Type: SystemInt32
im (Optional)
Type: MediaCy.IQL.EngineMcImage
Remarks
The scale bar is set using current scale bar parameters. To set scale bar parameters use MarkerLength, MarkerPos, TextSize, TextColor, MarkerColor and BackColor properties before calling this function.
Examples
VB
Sub SetMarker()
     'set scale bar parameters
    SCalibration.BackColor = -1                  'transparent background
    SCalibration.TextColor = RGB(255, 255, 0)    'yellow text
    SCalibration.MarkerColor = RGB(255, 0, 0)    'ret scale bar
    SCalibration.TextSize = 26
    SCalibration.MarkerLength = 100
    SCalibration.MarkerPos = scmpBottomLeft
     'set scale bar on the image
    SCalibration.SetCalibrationMarker            'place the scale bar
End Sub
See Also