IDOMSoftMaskBrush provides a way of representing a PDF style soft mask in it's entirity. The soft mask brush contains a suitable IDOMTransparency group, as well as the necessary soft mask details. See section 7.5.4 of the PDF 1.7 specification. These are only allowed for OpacityMask entries.
More...
#include <idombrush.h>
|
enum | eSoftMaskType |
| Enum for soft mask interpretation.
|
|
enum | eBrushType {
eSolidColor
, eLinearGradient
, eRadialGradient
, eImage
,
eMasked
, eVisual
, eSoftMask
, eTilingPattern
,
eType1ShadingPattern
, eType2ShadingPattern
, eType3ShadingPattern
, eType4567ShadingPattern
,
eNull
} |
| Brush type enumeration. More...
|
|
IDOMSoftMaskBrush provides a way of representing a PDF style soft mask in it's entirity. The soft mask brush contains a suitable IDOMTransparency group, as well as the necessary soft mask details. See section 7.5.4 of the PDF 1.7 specification. These are only allowed for OpacityMask entries.
◆ classID()
static const CClassID& IDOMSoftMaskBrush::classID |
( |
| ) |
|
|
inlinestatic |
Retrieves class id of IDOM.
- Returns
- CClassID Class id of the element
◆ create()
static EDL_API IDOMSoftMaskBrushPtr IDOMSoftMaskBrush::create |
( |
IEDLClassFactory * |
pFactory, |
|
|
const IDOMTransparencyGroupPtr & |
group, |
|
|
eSoftMaskType |
type, |
|
|
const FMatrix & |
renderTransform = FMatrix() , |
|
|
const IDOMColorPtr & |
backdropColor = IDOMColorPtr() , |
|
|
const IDOMFunctionPtr & |
transfer = IDOMFunctionPtr() |
|
) |
| |
|
static |
Simplified creator for a soft mask brush. Throws an IEDLError on failure.
- Parameters
-
pFactory | The factory to use. |
group | The group to form the content of the soft mask. |
type | The type of the soft mask. |
renderTransform | The desired render transform. |
backdropColor | The backdrop color (must have the same color space as the group). Optional. |
transfer | The soft mask transfer function. Optional. |
- Returns
- IDOMSoftMaskBrushPtr The new brush.
◆ getBackdropColor()
virtual IDOMColorPtr IDOMSoftMaskBrush::getBackdropColor |
( |
| ) |
const |
|
pure virtual |
Retrieves the color used for luminosity backdrop composition.
- Parameters
-
◆ getGroup()
virtual IDOMTransparencyGroupPtr IDOMSoftMaskBrush::getGroup |
( |
| ) |
const |
|
pure virtual |
Retrieves the transparency group used for the mask.
- Returns
- IDOMTransparencyGroupPtr The group
◆ getSoftMaskType()
virtual eSoftMaskType IDOMSoftMaskBrush::getSoftMaskType |
( |
| ) |
const |
|
pure virtual |
Retrieves the soft mask type.
- Returns
- eSoftMaskType The soft mask type.
◆ getTransferFunction()
virtual IDOMFunctionPtr IDOMSoftMaskBrush::getTransferFunction |
( |
| ) |
const |
|
pure virtual |
Retrieves the function used for luminosity used for deriving mask values.
- Returns
- IDOMFunctionPtr The transform function, or NULL if there is no transfer function
The documentation for this class was generated from the following file: