Public Member Functions | |
Accessor methods | |
virtual int | getWidth () const =0 |
Returns the width of the image in pixels. | |
virtual int | getHeight () const =0 |
Returns the height of the image in pixels. | |
Render methodes | |
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 More... | |
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. More... | |
virtual bool | setContent (const byte *pixeldata, uint size, uint offset, uint stride)=0 |
Fills the content of the image with pixel data. More... | |
virtual uint | getPixel (int x, int y)=0 |
Reads out a pixel of the image. More... | |
Information methodes | |
virtual bool | isBlitSource () const =0 |
Checks, if it is allowed to call BS_Image Blit(). More... | |
virtual bool | isBlitTarget () const =0 |
Checks, if the BS_Image can be a target image for a Blit call. More... | |
virtual bool | isScalingAllowed () const =0 |
Returns true, if the BS_Image is allowed to be scaled by a Blit() call. | |
virtual bool | isFillingAllowed () const =0 |
Returns true, if the BS_Image is allowed to be filled by a Fill() call. | |
virtual bool | isAlphaAllowed () const =0 |
Returns true, if the BS_Image is allowed to be displayed with an alpha value. | |
virtual bool | isColorModulationAllowed () const =0 |
Return true, if the BS_Image is allowed to be displayed with color modulation by a Blit() call. | |
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 | isSolid () const |
|
pure virtual |
renders the image in the framebuffer
pDest | a pointer to the target image. In most cases this is the framebuffer. |
PosX | the position on the X-axis in the target image in pixels where the image is supposed to be rendered. The default value is 0. |
PosY | the position on the Y-axis in the target image in pixels where the image is supposed to be rendered. The default value is 0. |
Flipping | how the image should be flipped. The default value is Graphics::FLIP_NONE (no flipping) |
pSrcPartRect | Pointer on Common::Rect which specifies the section to be rendered. If the whole image has to be rendered the Pointer is NULL. This referes to the unflipped and unscaled image. The default value is NULL. |
Color | an ARGB color value, which determines the parameters for the color modulation und alpha blending. The alpha component of the color determines the alpha blending parameter (0 = no covering, 255 = full covering). The color components determines the color for color modulation. The default value is BS_ARGB(255, 255, 255, 255) (full covering, no color modulation). The macros BS_RGB and BS_ARGB can be used for the creation of the color value. |
Width | the output width of the screen section. The images will be scaled if the output width of the screen section differs from the image section. The value -1 determines that the image should not be scaled. The default value is -1. |
Width | the output height of the screen section. The images will be scaled if the output width of the screen section differs from the image section. The value -1 determines that the image should not be scaled. The default value is -1. |
Implemented in Sword25::VectorImage, Sword25::RenderedImage, and Sword25::SWImage.
|
pure virtual |
fills a rectangular section of the image with a color.
pFillRect | Pointer on Common::Rect which specifies the section of the image which is supposed to be filled. If the whole image has to be filled this value is NULL. The default value is NULL. |
Color | the 32 Bit color value for filling the image section. |
Implemented in Sword25::VectorImage, Sword25::RenderedImage, and Sword25::SWImage.
|
pure virtual |
Fills the content of the image with pixel data.
Pixeldata | a vector which cotains the pixel data. They must be present in the color format of the image and there must be enough data available for filling the whole image. |
Offset | the offset in Byte in Pixeldata-Vector on which the first pixel to write is located. The default value is 0. |
Stride | the distance in Byte between the end of line and the beginning of a new line in Pixeldata-Vector. The default value is 0. |
Implemented in Sword25::VectorImage, Sword25::RenderedImage, and Sword25::SWImage.
|
pure virtual |
Reads out a pixel of the image.
X | the X-coordinate of the pixel. |
Y | the y-coordinate of the pixel. |
Implemented in Sword25::VectorImage, Sword25::RenderedImage, and Sword25::SWImage.
|
pure virtual |
Checks, if it is allowed to call BS_Image Blit().
Implemented in Sword25::VectorImage, Sword25::RenderedImage, and Sword25::SWImage.
|
pure virtual |
Checks, if the BS_Image can be a target image for a Blit call.
Implemented in Sword25::VectorImage, Sword25::RenderedImage, and Sword25::SWImage.