java.lang.Object
org.sejda.sambox.pdmodel.graphics.state.PDSoftMask
- All Implemented Interfaces:
COSObjectable
Soft mask.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate COSArrayprivate MatrixTo allow a soft mask to know the CTM at the time of activation of the ExtGState.private final COSDictionaryprivate PDTransparencyGroupprivate static final org.slf4j.Loggerprivate COSNameprivate PDFunction -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PDSoftMaskCreates a new soft mask.Returns the backdrop color.getGroup()Returns the G entry of the soft mask objectReturns the CTM at the time the ExtGState was activated.Returns the subtype of the soft mask (Alpha, Luminosity) - S entryReturns the transfer function.(package private) voidSet the CTM that is valid at the time the ExtGState was activated.
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
dictionary
-
subType
-
group
-
backdropColor
-
transferFunction
-
ctm
To allow a soft mask to know the CTM at the time of activation of the ExtGState.
-
-
Constructor Details
-
PDSoftMask
Creates a new soft mask.
-
-
Method Details
-
create
Creates a new soft mask.- Parameters:
dictionary- SMask
-
getCOSObject
- Specified by:
getCOSObjectin interfaceCOSObjectable- Returns:
- The
COSBasethat matches this Java object.
-
getSubType
Returns the subtype of the soft mask (Alpha, Luminosity) - S entry -
getGroup
Returns the G entry of the soft mask object- Returns:
- form containing the transparency group
- Throws:
IOException
-
getBackdropColor
Returns the backdrop color. -
getTransferFunction
Returns the transfer function.- Throws:
IOException- If we are unable to create the PDFunction object.
-
setInitialTransformationMatrix
Set the CTM that is valid at the time the ExtGState was activated.- Parameters:
ctm-
-
getInitialTransformationMatrix
Returns the CTM at the time the ExtGState was activated.- Returns:
-