sempdf v1.9.1Classes
Class: PdfSoftMaskBuilder
sempdf / PdfSoftMaskBuilder
Defined in: src/document.ts:5902
Sub-builder for the contents of a luminosity soft-mask Form XObject. Supports path operations only.
Methods
path()
path(commands, style): void;Defined in: src/document.ts:5910
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()
restoreState(): void;Defined in: src/document.ts:5922
Restores the most recently saved graphics state.
Returns
void
saveState()
saveState(): void;Defined in: src/document.ts:5917
Saves the current graphics state.
Returns
void
transform()
transform(matrix): void;Defined in: src/document.ts:5927
Adds a transformation matrix.
Parameters
| Parameter | Type |
|---|---|
matrix | Transform |
Returns
void