Gatan | AMETEKSkip to Main Content
No options found

Add scale-bar and intensity-bar

DigitalMicrograph Script

Command example showing how scale-bar and intensity-bar annotations are created on an image.

Preview

image img := RealImage("Test",4,512,512)
img = itheta
img.ShowImage()
imageDisplay disp = img.ImageGetImageDisplay(0)

number kSCALEBAR = 31
number kINTENSITYBAR = 33

component scalebar = NewComponent( kSCALEBAR, 450, 100, 480, 300 )
disp.ComponentAddChildAtEnd( scalebar )

component intbar = NewComponent( kINTENSITYBAR, 50, 400, 450, 490 )
disp.ComponentAddChildAtEnd( intbar )