38 #ifndef SWORD25_IMAGE_H 39 #define SWORD25_IMAGE_H 42 #include "sword25/kernel/common.h" 43 #include "common/rect.h" 44 #include "sword25/gfx/graphicengine.h" 107 virtual bool blit(
int posX = 0,
int posY = 0,
108 int flipping = Graphics::FLIP_NONE,
110 uint color = BS_ARGB(255, 255, 255, 255),
111 int width = -1,
int height = -1,
123 virtual bool fill(
const Common::Rect *pFillRect = 0, uint color = BS_RGB(0, 0, 0)) = 0;
135 virtual bool setContent(
const byte *pixeldata, uint size, uint offset, uint stride) = 0;
144 virtual uint
getPixel(
int x,
int y) = 0;
186 virtual bool isSolid()
const {
return false; }
virtual uint getPixel(int x, int y)=0
Reads out a pixel of the image.
virtual bool isScalingAllowed() const =0
Returns true, if the BS_Image is allowed to be scaled by a Blit() call.
virtual int getHeight() const =0
Returns the height of the image in pixels.
Definition: microtiles.h:38
virtual bool fill(const Common::Rect *pFillRect=0, uint color=BS_RGB(0, 0, 0))=0
fills a rectangular section of the image with a color.
virtual bool isAlphaAllowed() const =0
Returns true, if the BS_Image is allowed to be displayed with an alpha value.
virtual bool isSetContentAllowed() const =0
Returns true, if the content of the BS_Image is allowed to be replaced by call of SetContent()...
virtual bool isBlitSource() const =0
Checks, if it is allowed to call BS_Image Blit().
virtual int getWidth() const =0
Returns the width of the image in pixels.
virtual bool isBlitTarget() const =0
Checks, if the BS_Image can be a target image for a Blit call.
virtual bool setContent(const byte *pixeldata, uint size, uint offset, uint stride)=0
Fills the content of the image with pixel data.
virtual bool isFillingAllowed() const =0
Returns true, if the BS_Image is allowed to be filled by a Fill() call.
virtual 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)=0
renders the image in the framebuffer
Definition: movie_decoder.h:32
virtual bool isColorModulationAllowed() const =0
Return true, if the BS_Image is allowed to be displayed with color modulation by a Blit() call...