evCreate API 5.7 Help

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:

evCreate.object.image.Function()

Enumerations

EvImageFormat

An enumeration of supported image file formats.

EvRenderColorMode

An enumeration of color modes for rendered images.

EvRenderInterpolation

An enumeration of interpolation methods for rendering images.

Interfaces

EvImageAttributes

An interface that specifies the attributes of a given image item.

EvImageData

An interface that defines the raw binary data of a given image.

EvRenderOptions

An 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.

03 April 2025