Class: PdfSoftMaskBuilder
Sub-builder for the contents of a luminosity soft-mask Form XObject. Supports path operations only.
Methods
path()
path(commands, style): void;
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;
Restores the most recently saved graphics state.
Returns
void
saveState()
saveState(): void;
Saves the current graphics state.
Returns
void
transform()
transform(matrix): void;
Adds a transformation matrix.
Parameters
| Parameter | Type |
|---|---|
matrix | Transform |
Returns
void