25 #ifndef DIGIKAM_IMAGE_IFACE_H
26 #define DIGIKAM_IMAGE_IFACE_H
62 explicit ImageIface(
const QSize& size = QSize(0, 0));
69 void setPreviewType(PreviewType type = FullImage);
75 DImg setPreviewSize(
const QSize& size)
const;
80 QSize previewSize()
const;
81 bool previewHasAlpha()
const;
82 bool previewSixteenBit()
const;
83 PreviewType previewType()
const;
89 DImg* previewReference();
99 QRect selectionRect()
const;
104 DImg selection()
const;
109 void crop(
const QRect& region);
115 DColor colorInfoFromOriginal(
const QPoint& point)
const;
116 DColor colorInfoFromPreview(
const QPoint& point)
const;
117 DColor colorInfoFromTargetPreview(
const QPoint& point)
const;
122 QSize originalSize()
const;
123 bool originalHasAlpha()
const;
124 bool originalSixteenBit()
const;
138 DImg* original()
const;
143 void convertOriginalColorDepth(
int depth);
149 QPixmap convertToPixmap(
const DImg& img)
const;
156 void paint(QPaintDevice*
const device,
const QRect& rect, QPainter*
const painter =
nullptr);
161 void setOriginalIccProfile(
const IccProfile& profile);
166 void setPreviewIccProfile(
const IccProfile& profile);
175 void setSelection(
const QString& caller,
const FilterAction& action,
const DImg& img);
185 void setPreview(
const DImg& img);
194 void setOriginal(
const QString& caller,
const FilterAction& action,
const DImg& img);
Definition: filteraction.h:43
Definition: iccprofile.h:43
Definition: imageiface.h:47
PreviewType
Definition: imageiface.h:52
@ FullImage
Preview will be rendered using full image.
Definition: imageiface.h:53
Definition: photoinfocontainer.h:41
Definition: datefolderview.cpp:43