Appearance
a11ydocs / PdfSoftMaskBuilder
Class: PdfSoftMaskBuilder
Defined in: src/document.ts:4476
Sub-builder for the contents of a luminosity soft-mask Form XObject. Supports path operations only.
Methods
path()
ts
path(commands, style): void;Defined in: src/document.ts:4484
Adds a vector path to the soft-mask form. Painted regions whose luminosity is high (white) become opaque; black becomes transparent.
Parameters
| Parameter | Type |
|---|---|
commands | readonly PathCommand[] |
style | PathStyle |
Returns
void
restoreState()
ts
restoreState(): void;Defined in: src/document.ts:4496
Restores the most recently saved graphics state.
Returns
void
saveState()
ts
saveState(): void;Defined in: src/document.ts:4491
Saves the current graphics state.
Returns
void
transform()
ts
transform(matrix): void;Defined in: src/document.ts:4501
Adds a transformation matrix.
Parameters
| Parameter | Type |
|---|---|
matrix | Transform |
Returns
void