NewSoftMaskGraphicsState
Vector graphics, Transparency, Form XObjects
Περιγραφή
Creates or reuses an ExtGState that applies a captured Form XObject as an alpha or luminosity soft mask, or creates a reset state that writes /SMask /None
Σύνταξη
Delphi
Function TPDFlib.NewSoftMaskGraphicsState(CaptureID, MaskType: Integer; Const Backdrop, TransferFunction: WideString): Integer;
Παράμετροι
| CaptureID | ID του καταγεγραμμένου Form XObject ή 0 όταν το MaskType είναι PDF_SOFT_MASK_NONE |
|---|---|
| MaskType | PDF_SOFT_MASK_ALPHA, PDF_SOFT_MASK_LUMINOSITY ή PDF_SOFT_MASK_NONE |
| Backdrop | Κενή συμβολοσειρά, ή PDF αριθμητικός πίνακας με ακριβώς τρεις συνιστώσες backdrop από 0 έως 1 για την απομονωμένη ομάδα διαφάνειας DeviceRGB |
| TransferFunction | Empty string, /Identity, or a PDF function dictionary, stream, or indirect reference with a numeric FunctionType |
Τιμές επιστροφής
Επιστρέφει επαναχρησιμοποιήσιμο ID κατάστασης graphics, αλλιώς 0
Remarks
The captured form is configured as an isolated DeviceRGB transparency group and identical configurations reuse one ExtGState
Apply the returned ID with SetGraphicsState before drawing masked content, then apply a PDF_SOFT_MASK_NONE state to end the mask scope
A reset state requires
CaptureID 0 and empty backdrop and transfer-function strings
The document version is raised to PDF 1.4, while PDF/A-1 and PDF/X-1 modes reject this operation
Δείτε επίσης
SetGraphicsState, BeginFormXObject, SetCapturedPageTransparencyGroup, SetImageSoftMaskEx