mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Refactoring of colors, introducing original color
This commit is contained in:
@@ -326,6 +326,12 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
PDFReal getShapeStroking() const;
|
||||
PDFReal getOpacityStroking() const;
|
||||
PDFReal getShapeFilling() const;
|
||||
PDFReal getOpacityFilling() const;
|
||||
|
||||
|
||||
struct PDFTransparencyGroupPainterData
|
||||
{
|
||||
PDFTransparencyGroup group;
|
||||
@@ -341,6 +347,11 @@ private:
|
||||
PDFColorSpacePointer blendColorSpace;
|
||||
};
|
||||
|
||||
struct PDFTransparencyPainterState
|
||||
{
|
||||
QPainterPath clipPath; ///< Clipping path in device state coordinates
|
||||
};
|
||||
|
||||
void removeInitialBackdrop();
|
||||
|
||||
PDFFloatBitmapWithColorSpace* getInitialBackdrop();
|
||||
@@ -348,6 +359,8 @@ private:
|
||||
PDFFloatBitmapWithColorSpace* getBackdrop();
|
||||
const PDFColorSpacePointer& getBlendColorSpace() const;
|
||||
|
||||
PDFTransparencyPainterState* getPainterState() { return &m_painterStateStack.top(); }
|
||||
|
||||
bool isTransparencyGroupIsolated() const;
|
||||
bool isTransparencyGroupKnockout() const;
|
||||
|
||||
@@ -355,6 +368,7 @@ private:
|
||||
PDFColorSpacePointer m_processColorSpace; ///< Process color space (color space, in which is page graphic's blended)
|
||||
std::unique_ptr<PDFTransparencyGroupGuard> m_pageTransparencyGroupGuard;
|
||||
std::vector<PDFTransparencyGroupPainterData> m_transparencyGroupDataStack;
|
||||
std::stack<PDFTransparencyPainterState> m_painterStateStack;
|
||||
const PDFInkMapper* m_inkMapper;
|
||||
bool m_active;
|
||||
};
|
||||
|
Reference in New Issue
Block a user