Comprehensive Guide for Developers: Features, Integration, and API Reference
Represents a soft mask in a PDF document. More...
#include <pdfsdk/cxx/soft_mask.h>
Public Member Functions | |
| SoftMask | Create (const Document &doc) |
| bool | Equals (const SoftMask &that) const |
| PDESoftMaskSubtype | GetSubtype () const |
| void | SetSubtype (PDESoftMaskSubtype subtype) |
| XObject | GetGroup () const |
| void | SetGroup (const XObject &group) |
| PDColorValue | GetBackdropColor () const |
| void | SetBackdropColor (PDColorValue backdrop) |
| Function | GetTransferFunction () const |
| void | SetTransferFunction (const Function &transfer) |
| SoftMask (PDESoftMask handle, bool adopt=false) noexcept | |
| SoftMask (const SoftMask &rhs) noexcept | |
| SoftMask & | operator= (const SoftMask &rhs) noexcept |
| SoftMask (SoftMask &&rhs) noexcept | |
| SoftMask & | operator= (SoftMask &&rhs) noexcept |
Represents a soft mask in a PDF document.
ISO 32000-2:2020 - 11.6.5 Soft masks
Creates a new soft mask for the specified document.
| doc | The document to create the soft mask for. |
| bool PDF::SoftMask::Equals | ( | const SoftMask & | that | ) | const |
Checks if the soft mask is equal to another soft mask.
| that | The soft mask to compare with. |
| PDColorValue PDF::SoftMask::GetBackdropColor | ( | ) | const |
Gets the backdrop color of the soft mask.
| XObject PDF::SoftMask::GetGroup | ( | ) | const |
Gets the group XObject associated with the soft mask.
| PDESoftMaskSubtype PDF::SoftMask::GetSubtype | ( | ) | const |
Gets the subtype of the soft mask.
| Function PDF::SoftMask::GetTransferFunction | ( | ) | const |
Gets the transfer function of the soft mask.
| void PDF::SoftMask::SetBackdropColor | ( | PDColorValue | backdrop | ) |
Sets the backdrop color of the soft mask.
| backdrop | The backdrop color to set. |
| void PDF::SoftMask::SetGroup | ( | const XObject & | group | ) |
Sets the group XObject associated with the soft mask.
| group | The group XObject to set. |
| void PDF::SoftMask::SetSubtype | ( | PDESoftMaskSubtype | subtype | ) |
Sets the subtype of the soft mask.
| subtype | The subtype to set. |
| void PDF::SoftMask::SetTransferFunction | ( | const Function & | transfer | ) |
Sets the transfer function of the soft mask.
| transfer | The transfer function to set. |