Lenses
The Lens subsection of the Object section of the evCreate API includes enumerations and functions to create and update lens items.
lens namespace
The Lens subsection of the Object evCreate API section is accessed with the lens namespace inside the object namespace:
Enumerations
EvLensMagnificationViewAreaAn enumeration of options for object items displayed in the lens frame depending on their vertical layout position relative to the lens item.
EvLensShapeAn enumeration of the shapes of lens frames.
Functions
Create(startPt: EvCoord2D, endPt: EvCoord2D, zOrder?: EvObjectZOrder, shape?: EvLensShape, magnification?: number, viewArea?: EvLensMagnificationViewArea, absolute?: boolean): Promise<EvItem>A function to create a new lens item at given coordinates of the magnified area and lens frame.
SetMagnification(lensObj: EvItem, magnification: number): Promise<void>A function to change the magnification factor of a given lens item to a given new value.
SetSnapshotStatus(lensObj: EvItem, snapshot: boolean, dpi?: number): Promise<void>A function to control whether the lens frame of a given lens item displays a static stored image or dynamic current view of the magnified area.
SetViewAbsolute(lensObj: EvItem, absolute: boolean): Promise<void>A function to control the positioning behavior of the magnified area of a given lens item when moving the lens frame.
SetViewArea(lensObj: EvItem, viewArea: EvLensMagnificationViewArea): Promise<void>A function to control which object items from the vertical stack of object items in the magnified area are displayed in the lens frame of a given lens item.
SetViewCenter(lensObj: EvItem, viewCenter: EvCoord2D): Promise<void>A function to move the magnified area of a given lens item to a given new position.