Images
The Images subsection of the Object section of the evCreate API includes enumerations, interfaces, and functions to render images and manage image items.
image namespace
The Images subsection of the Object evCreate API section is accessed with the image namespace inside the object namespace:
Enumerations
EvImageFormatAn enumeration of supported image file formats.
EvRenderColorModeAn enumeration of color modes for rendered images.
EvRenderInterpolationAn enumeration of interpolation methods for rendering images.
Interfaces
EvImageAttributesAn interface that specifies the attributes of a given image item.
EvImageDataAn interface that defines the raw binary data of a given image.
EvRenderOptionsAn interface that specifies the settings for rendering items into images.
Functions
Create(data: EvImageData, at?: EvCoord2D, width?: number, height?: number, zOrder?: EvObjectZOrder): Promise<EvItem>A function to create a new image item with given raw binary image data.
CreateEmpty(at: EvCoord2D, width: number, height: number, zOrder?: EvObjectZOrder): Promise<EvItem>A function to create a new empty image item.
CreateFromPlm(plmImage: EvPlmItem, at?: EvCoord2D, width?: number, height?: number, zOrder?: EvObjectZOrder): Promise<EvItem>A function to create a new image item with a given image sourced from a PLM system.
CreateFromUrl(url: string, at?: EvCoord2D, width?: number, height?: number, zOrder?: EvObjectZOrder): Promise<EvItem>A function to create a new image item with an image provided via a given URL.
GetData(obj: EvItem, format: EvImageFormat): Promise<Uint8Array>A function to get the image attached to a given image item as binary data of a given image file format.
RenderArea(bounds: EvRect, options: EvRenderOptions): Promise<EvItem>A function to render a given area on the current page into an image item saved to this page.
RenderAreaTo(bounds: EvRect, options: EvRenderOptions, format: EvImageFormat): Promise<Uint8Array>A function to render a given area on the current page into an image returned as binary data.
SetData(obj: EvItem, data: EvImageData): Promise<void>A function to attach a given image provided as binary data to a given image item.