[]
DsPdfJS API / HatchBrush
Represents a hatch brush.
new HatchBrush(
hatchBrushProperties):HatchBrush
Creates a hatch brush with specified properties.
The settings for creating a brush with hatch style.
HatchBrush
const brush = new HatchBrush({
style: HatchStyle.LargeConfetti,
backColor: "Navy",
foreColor: "White"
});
Brush.constructor
new HatchBrush(
om,hatchBrushProperties):HatchBrush
Creates a hatch brush with specified properties.
An object manager that controls the lifetime of the HatchBrush object.
The settings for creating a brush with hatch style.
HatchBrush
Brush.constructor
get backColor():
Color
Gets the color of spaces between the hatch lines.
get foreColor():
Color
Gets the color of hatch lines.
get id():
number
Gets the reference to the object.
number
get om():
ObjectManager
Gets the owner ObjectManager instance.
get style():
HatchStyle
Gets the hatch style of the HatchBrush.
get type():
BrushType
Gets the type of the brush.
free():
void
Detaches the object from the ObjectManager and deallocates its memory, if possible.
void
rebind(
omTo):void
Rebinds the object from the current ObjectManager to the specified one.
The new ObjectManager for the object.
void