3.7.5.23 Img

LabTalk Object Type:

Internal

The img object provides script access for processing on image window, such as zooming the window, loading an image file, etc.

This object is introduced in Origin 2021b.

Properties:

Property Access Description
img.pixel Read/write,
numeric

Wether to show image as actual size.

1 = show image as actual size, showing pixels as 1 to 1. This is the default mode when an image window is created.
0 = not show image as actual size. Image will always fit to the window size.
img.info Read only,
numeric

Show or Hide the Information Bar at the top of the iamge window. 1 = show, 0 = hide.

Methods:

Method Description
img.load(fname$)

Import the specified image file fname$ to the image window.

img.fit(value)

Use to fit window size to image.