Class PDSoftMask
java.lang.Object
org.apache.pdfbox.pdmodel.graphics.state.PDSoftMask
- All Implemented Interfaces:
COSObjectable
Soft mask.
- Author:
- Kühn & Weyh Software GmbH
-
Constructor Summary
ConstructorsConstructorDescriptionPDSoftMask(COSDictionary dictionary) Creates a new soft mask.PDSoftMask(COSDictionary dictionary, ResourceCache resourceCache) Creates a new soft mask. -
Method Summary
Modifier and TypeMethodDescriptionstatic PDSoftMaskCreates a new soft mask.static PDSoftMaskcreate(COSBase dictionary, ResourceCache resourceCache) Creates a new soft mask.Returns the backdrop color.Convert this standard java object to a COS object.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.
-
Constructor Details
-
PDSoftMask
Creates a new soft mask.- Parameters:
dictionary- The soft mask dictionary.
-
PDSoftMask
Creates a new soft mask.- Parameters:
dictionary- The soft mask dictionary.resourceCache- Resource cache, may be null.
-
-
Method Details
-
create
Creates a new soft mask.- Parameters:
dictionary- SMask
-
create
Creates a new soft mask.- Parameters:
dictionary- SMaskresourceCache- Resource cache, may be null.- Returns:
- the newly created instance of PDSoftMask
-
getCOSObject
Description copied from interface:COSObjectableConvert this standard java object to a COS object.- Specified by:
getCOSObjectin interfaceCOSObjectable- Returns:
- The cos object that 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.
-
getInitialTransformationMatrix
Returns the CTM at the time the ExtGState was activated.- Returns:
- the CTM at the time the ExtGState was activated.
-