Header menu logo fable-electron-docs-api

Options Type

Constructors

Constructor Description

Options(?scaleFactor, ?width, ?height, ?buffer, ?dataURL)

Full Usage: Options(?scaleFactor, ?width, ?height, ?buffer, ?dataURL)

Parameters:
    ?scaleFactor : float - The scale factor to add the image representation for.
    ?width : int - Defaults to 0. Required if a bitmap buffer is specified as buffer.
    ?height : int - Defaults to 0. Required if a bitmap buffer is specified as buffer.
    ?buffer : Buffer - The buffer containing the raw image data.
    ?dataURL : string - The data URL containing either a base 64 encoded PNG or JPEG image.

Returns: Options
?scaleFactor : float

The scale factor to add the image representation for.

?width : int

Defaults to 0. Required if a bitmap buffer is specified as buffer.

?height : int

Defaults to 0. Required if a bitmap buffer is specified as buffer.

?buffer : Buffer

The buffer containing the raw image data.

?dataURL : string

The data URL containing either a base 64 encoded PNG or JPEG image.

Returns: Options

Instance members

Instance member Description

this.buffer

Full Usage: this.buffer

The buffer containing the raw image data.

this.dataURL

Full Usage: this.dataURL

The data URL containing either a base 64 encoded PNG or JPEG image.

this.height

Full Usage: this.height

Defaults to 0. Required if a bitmap buffer is specified as buffer.

this.scaleFactor

Full Usage: this.scaleFactor

The scale factor to add the image representation for.

this.width

Full Usage: this.width

Defaults to 0. Required if a bitmap buffer is specified as buffer.

Type something to start searching.