9 #include <QImageReader> 34 static QImage ApplyExifOrientation(QImage &image,
int orientation);
45 virtual void SetChanged(
bool change =
true) { m_Changed = change; }
53 void ConvertToYUV(
void);
55 void Assign(
const QImage &img);
56 void Assign(
const QPixmap &pix);
59 bool Load(
const QString &filename);
62 void Resize(
const QSize &newSize,
bool preserveAspect =
false);
63 void Reflect(
ReflectAxis axis,
int shear,
int scale,
int length,
78 const QSize & size,
const QColor &begin,
79 const QColor &end,
uint alpha,
82 void SetID(
unsigned int id) { m_imageId = id; }
83 unsigned int GetID(
void)
const {
return m_imageId; }
91 void SetIsInCache(
bool bCached);
95 #if QT_VERSION < QT_VERSION_CHECK(5,10,0) 96 return (m_cached) ? byteCount() : 0;
98 return (m_cached) ? sizeInBytes() : 0;
104 static void MakeGradient(QImage &image,
const QColor &begin,
105 const QColor &end,
int alpha,
106 bool drawBoundary=
true,
unsigned int GetID(void) const
Encapsulates Exif orientation processing.
virtual void SetChanged(bool change=true)
General purpose reference counter.
static MythUIHelper * s_ui
void setIsOriented(bool oriented)
MythPainter * GetParent(void)
virtual int IncrRef(void)
Increments reference count.
QNetworkReply * m_networkReply
uint GetCacheSize(void) const
virtual int DecrRef(void)
Decrements reference count and deletes on 0.
void SetFileName(QString fname)
FillDirection m_gradDirection
QString GetFileName(void) const
void SetID(unsigned int id)
void SetParent(MythPainter *parent)
void setIsReflected(bool reflected)