Class PDSoftMask
- java.lang.Object
-
- com.tom_roush.pdfbox.pdmodel.graphics.state.PDSoftMask
-
- All Implemented Interfaces:
COSObjectable
public final class PDSoftMask extends Object implements COSObjectable
Soft mask.
-
-
Constructor Summary
Constructors Constructor Description PDSoftMask(COSDictionary dictionary)Creates a new soft mask.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PDSoftMaskcreate(COSBase dictionary)Creates a new soft mask.COSArraygetBackdropColor()Returns the backdrop color.COSDictionarygetCOSObject()Convert this standard java object to a COS object.PDFormXObjectgetGroup()Returns the G entry of the soft mask objectCOSNamegetSubType()Returns the subtype of the soft mask (Alpha, Luminosity) - S entryPDFunctiongetTransferFunction()Returns the transfer function.
-
-
-
Constructor Detail
-
PDSoftMask
public PDSoftMask(COSDictionary dictionary)
Creates a new soft mask.
-
-
Method Detail
-
create
public static PDSoftMask create(COSBase dictionary)
Creates a new soft mask.- Parameters:
dictionary- SMask
-
getCOSObject
public COSDictionary 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
public COSName getSubType()
Returns the subtype of the soft mask (Alpha, Luminosity) - S entry
-
getGroup
public PDFormXObject getGroup() throws IOException
Returns the G entry of the soft mask object- Returns:
- form containing the transparency group
- Throws:
IOException
-
getBackdropColor
public COSArray getBackdropColor()
Returns the backdrop color.
-
getTransferFunction
public PDFunction getTransferFunction() throws IOException
Returns the transfer function.- Throws:
IOException
-
-