Ink coverage statistics

This commit is contained in:
Jakub Melka
2021-03-31 19:55:26 +02:00
parent 1bd4e9b53b
commit fb6de717f6
2 changed files with 82 additions and 5 deletions

View File

@@ -79,6 +79,10 @@ private:
void addInfoBoxColoredItem(QColor color, QString caption, QString value);
void addInfoBoxColoredRect(QColor color);
const std::vector<pdf::PDFColorComponent>& getInkCoverage() const;
std::vector<pdf::PDFColorComponent> getInkCoverageImpl() const;
enum InfoBoxStyle
{
Header,
@@ -110,6 +114,8 @@ private:
QColor m_alarmColor;
std::optional<QPoint> m_imagePointUnderCursor;
mutable pdf::PDFCachedItem<std::vector<pdf::PDFColorComponent>> m_inkCoverageMM;
QImage m_pageImage;
pdf::PDFFloatBitmapWithColorSpace m_originalProcessBitmap;
QSizeF m_pageSizeMM;