[]
        
(Showing Draft Content)

ImageBrush

DsPdfJS API v9.1.0


DsPdfJS API / ImageBrush

Class: ImageBrush

Represents an image brush.

Extends

Constructors

Constructor

new ImageBrush(image): ImageBrush

Creates an image brush based on the Image object.

Parameters

image

ImageOrBitmap

The Image object for the brush.

Returns

ImageBrush

Overrides

Brush.constructor

Constructor

new ImageBrush(om, image): ImageBrush

Creates an image brush based on the Image object.

Parameters

om

ObjectManager

An object manager that controls the lifetime of the ImageBrush object.

image

ImageOrBitmap

The Image object for the brush.

Returns

ImageBrush

Overrides

Brush.constructor

Accessors

id

Get Signature

get id(): number

Gets the reference to the object.

Returns

number

Inherited from

Brush.id


image

Get Signature

get image(): ImageOrBitmap

Gets the image object of the brush.

Returns

ImageOrBitmap


om

Get Signature

get om(): ObjectManager

Gets the owner ObjectManager instance.

Returns

ObjectManager

Inherited from

Brush.om


type

Get Signature

get type(): BrushType

Gets the type of the brush.

Returns

BrushType

Overrides

Brush.type

Methods

free()

free(): void

Detaches the object from the ObjectManager and deallocates its memory, if possible.

Returns

void

Inherited from

Brush.free


rebind()

rebind(omTo): void

Rebinds the object from the current ObjectManager to the specified one.

Parameters

omTo

ObjectManager

The new ObjectManager for the object.

Returns

void

Inherited from

Brush.rebind