Appearance
zeropdf / PdfSoftMaskBuilder
Class: PdfSoftMaskBuilder
Defined in: src/document.ts:4238
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:4246
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:4258
Restores the most recently saved graphics state.
Returns
void
saveState()
ts
saveState(): void;Defined in: src/document.ts:4253
Saves the current graphics state.
Returns
void
transform()
ts
transform(matrix): void;Defined in: src/document.ts:4263
Adds a transformation matrix.
Parameters
| Parameter | Type |
|---|---|
matrix | Transform |
Returns
void