Go to the documentation of this file.
71 fprintf(fd,
"{:Bitmap ");
77 fprintf(fd,
":Tiling true\n");
108 MHERROR(
"Bitmap must contain a content");
152 MHERROR(QString(
"Unknown bitmap content hook %1").arg(nCHook));
156 engine->
Redraw(updateArea);
165 nTransPerCent =
std::clamp(nTransPerCent, 0, 100);
176 engine->
Redraw(updateArea);
186 engine->
Redraw(updateArea);
221 imageSize.width(), imageSize.height());
222 return boxRegion & bitmapRegion;
virtual MHBitmapDisplay * CreateBitmap(bool tiled)=0
void Preparation(MHEngine *engine) override
enum MHIngredient::@10 IN_NoContent
void CreateContent(const unsigned char *data, int length, MHEngine *engine)
const unsigned char * Bytes() const
void PrintMe(FILE *fd, int nTabs) const override
MHOctetString m_includedContent
virtual void SetVariableValue(const MHUnion &)
void ContentPreparation(MHEngine *engine) override
void ContentPreparation(MHEngine *engine) override
void SetBitmapDecodeOffset(int newXOffset, int newYOffset, MHEngine *engine) override
void Preparation(MHEngine *engine) override
virtual void Draw(int x, int y, QRect rect, bool tiled, bool bUnder)=0
void Redraw(const QRegion ®ion)
void ContentArrived(const unsigned char *data, int length, MHEngine *engine) override
void EventTriggered(MHRoot *pSource, enum EventType ev)
int GetDefaultBitmapCHook()
void PrintTabs(FILE *fd, int n)
MHParseNode * GetArgN(int n)
void SetTransparency(int nTransPerCent, MHEngine *engine) override
virtual void CreateFromJPEG(const unsigned char *data, int length)=0
static eu8 clamp(eu8 value, eu8 low, eu8 high)
void Initialise(MHParseNode *p, MHEngine *engine) override
void ScaleBitmap(int xScale, int yScale, MHEngine *engine) override
virtual void CreateFromMPEG(const unsigned char *data, int length)=0
QRegion GetOpaqueArea() override
virtual QSize GetSize()=0
virtual bool IsOpaque()=0
void Initialise(MHParseNode *p, MHEngine *engine) override
virtual void CreateFromPNG(const unsigned char *data, int length)=0
@ C_ORIGINAL_TRANSPARENCY
void Display(MHEngine *d) override
void PrintMe(FILE *fd, int nTabs) const override
void GetBitmapDecodeOffset(MHRoot *pXOffset, MHRoot *pYOffset) override
QRegion GetVisibleArea() override
MHBitmapDisplay * m_pContent
virtual void ScaleImage(int newWidth, int newHeight)=0