31 #ifndef SWORD25_SWIMAGE_H 32 #define SWORD25_SWIMAGE_H 34 #include "sword25/kernel/common.h" 35 #include "sword25/gfx/image/image.h" 36 #include "sword25/gfx/graphicengine.h" 53 bool blit(
int posX = 0,
int posY = 0,
54 int flipping = Graphics::FLIP_NONE,
56 uint color = BS_ARGB(255, 255, 255, 255),
57 int width = -1,
int height = -1,
60 bool setContent(
const byte *pixeldata, uint size, uint offset, uint stride)
override;
61 uint
getPixel(
int x,
int y)
override;
uint getPixel(int x, int y) override
Reads out a pixel of the image.
int getHeight() const override
Returns the height of the image in pixels.
Definition: swimage.h:49
int16 h
Definition: surface.h:76
bool isBlitTarget() const override
Checks, if the BS_Image can be a target image for a Blit call.
Definition: swimage.h:66
bool blit(int posX=0, int posY=0, int flipping=Graphics::FLIP_NONE, Common::Rect *pPartRect=NULL, uint color=BS_ARGB(255, 255, 255, 255), int width=-1, int height=-1, RectangleList *updateRects=0) override
renders the image in the framebuffer
bool setContent(const byte *pixeldata, uint size, uint offset, uint stride) override
Fills the content of the image with pixel data.
Definition: microtiles.h:38
int getWidth() const override
Returns the width of the image in pixels.
Definition: swimage.h:46
bool isSetContentAllowed() const override
Returns true, if the content of the BS_Image is allowed to be replaced by call of SetContent()...
Definition: swimage.h:81
bool isFillingAllowed() const override
Returns true, if the BS_Image is allowed to be filled by a Fill() call.
Definition: swimage.h:72
bool isScalingAllowed() const override
Returns true, if the BS_Image is allowed to be scaled by a Blit() call.
Definition: swimage.h:69
bool isAlphaAllowed() const override
Returns true, if the BS_Image is allowed to be displayed with an alpha value.
Definition: swimage.h:75
int16 w
Definition: surface.h:71
bool fill(const Common::Rect *fillRectPtr, uint color) override
fills a rectangular section of the image with a color.
bool isColorModulationAllowed() const override
Return true, if the BS_Image is allowed to be displayed with color modulation by a Blit() call...
Definition: swimage.h:78
Definition: movie_decoder.h:32
bool isBlitSource() const override
Checks, if it is allowed to call BS_Image Blit().
Definition: swimage.h:63