[]
        
(Showing Draft Content)

HatchBrush

DsPdfJS API v9.1.0


DsPdfJS API / HatchBrush

Class: HatchBrush

Represents a hatch brush.

Extends

Constructors

Constructor

new HatchBrush(hatchBrushProperties): HatchBrush

Creates a hatch brush with specified properties.

Parameters

hatchBrushProperties

HatchBrushProperties

The settings for creating a brush with hatch style.

Returns

HatchBrush

Example

const brush = new HatchBrush({
    style: HatchStyle.LargeConfetti,
    backColor: "Navy",
    foreColor: "White"
});

Overrides

Brush.constructor

Constructor

new HatchBrush(om, hatchBrushProperties): HatchBrush

Creates a hatch brush with specified properties.

Parameters

om

ObjectManager

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

hatchBrushProperties

HatchBrushProperties

The settings for creating a brush with hatch style.

Returns

HatchBrush

Overrides

Brush.constructor

Accessors

backColor

Get Signature

get backColor(): Color

Gets the color of spaces between the hatch lines.

Returns

Color


foreColor

Get Signature

get foreColor(): Color

Gets the color of hatch lines.

Returns

Color


id

Get Signature

get id(): number

Gets the reference to the object.

Returns

number

Inherited from

Brush.id


om

Get Signature

get om(): ObjectManager

Gets the owner ObjectManager instance.

Returns

ObjectManager

Inherited from

Brush.om


style

Get Signature

get style(): HatchStyle

Gets the hatch style of the HatchBrush.

Returns

HatchStyle


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