public final class PDSoftMask extends java.lang.Object implements COSObjectable
Modifier and Type | Field and Description |
---|---|
private COSArray |
backdropColor |
private Matrix |
ctm
To allow a soft mask to know the CTM at the time of activation of the ExtGState.
|
private COSDictionary |
dictionary |
private PDTransparencyGroup |
group |
private static org.apache.commons.logging.Log |
LOG |
private COSName |
subType |
private PDFunction |
transferFunction |
Constructor and Description |
---|
PDSoftMask(COSDictionary dictionary)
Creates a new soft mask.
|
Modifier and Type | Method and Description |
---|---|
static PDSoftMask |
create(COSBase dictionary)
Creates a new soft mask.
|
COSArray |
getBackdropColor()
Returns the backdrop color.
|
COSDictionary |
getCOSObject()
Convert this standard java object to a COS object.
|
PDTransparencyGroup |
getGroup()
Returns the G entry of the soft mask object
|
Matrix |
getInitialTransformationMatrix()
Returns the CTM at the time the ExtGState was activated.
|
COSName |
getSubType()
Returns the subtype of the soft mask (Alpha, Luminosity) - S entry
|
PDFunction |
getTransferFunction()
Returns the transfer function.
|
(package private) void |
setInitialTransformationMatrix(Matrix ctm)
Set the CTM that is valid at the time the ExtGState was activated.
|
private static final org.apache.commons.logging.Log LOG
private final COSDictionary dictionary
private COSName subType
private PDTransparencyGroup group
private COSArray backdropColor
private PDFunction transferFunction
private Matrix ctm
public PDSoftMask(COSDictionary dictionary)
dictionary
- The soft mask dictionary.public static PDSoftMask create(COSBase dictionary)
dictionary
- SMaskpublic COSDictionary getCOSObject()
COSObjectable
getCOSObject
in interface COSObjectable
public COSName getSubType()
public PDTransparencyGroup getGroup() throws java.io.IOException
java.io.IOException
public COSArray getBackdropColor()
public PDFunction getTransferFunction() throws java.io.IOException
java.io.IOException
- If we are unable to create the PDFunction object.void setInitialTransformationMatrix(Matrix ctm)
ctm
- public Matrix getInitialTransformationMatrix()