Mask image

This commit is contained in:
Jakub Melka
2019-10-19 11:08:37 +02:00
parent 14419980cc
commit ac644c16a4
3 changed files with 26 additions and 6 deletions

View File

@ -85,7 +85,6 @@ public:
{
None,
ColorKeyMasking, ///< Masking by color key
Image, ///< Masking by image with alpha mask
ImageMask, ///< Masking by 1-bit image (see "ImageMask" entry in image's dictionary), current color from the graphic state is used to paint an image
SoftMask, ///< Image is masked by soft mask
};
@ -136,6 +135,9 @@ public:
const std::vector<PDFReal>& getDecode() const { return m_decode; }
const std::vector<PDFReal>& getMatte() const { return m_matte; }
void setMaskingType(MaskingType maskingType) { m_maskingType = maskingType; }
void setDecode(std::vector<PDFReal> decode) { m_decode = qMove(decode); }
/// Returns number of color channels
unsigned int getColorChannels() const { return m_components; }