![]() |
Pixel Dust Game Engine
v0.9.5
|


Public Types | |
| enum | FitType { fit_None, fit_Height, fit_Width, fit_Inside, fit_Fill, fit_FillKeepProportions } |
| enum | FilterType { filter_Box, filter_Normal, filter_Triangle, filter_Bell, filter_BSpline, filter_Mitchell, filter_Lanczos3, filter_Best = filter_Lanczos3 } |
| enum | ImageSerializationMode { ser_Nothing, ser_ByReference } |
Public Member Functions | |
| virtual Rect | getImageBounds () |
| virtual Rect | getImageBounds (Point &at) |
| virtual long | getHeight () |
| virtual long | getWidth () |
| virtual void | setTransparentColor (Color rgb)=0 |
| virtual Color | getTransparentColor ()=0 |
| virtual void | setOpacity (uint8 opacity)=0 |
| virtual uint8 | getOpacity () const =0 |
| virtual void | setEdgeClamping (bool inUseEdgeClamp)=0 |
| virtual void | retainData ()=0 |
| virtual void | retainAlpha ()=0 |
| Retain the alpha channel even after the image has been prepared for rasterization. | |
| virtual void | prepareToRasterize ()=0 |
| virtual void * | getData ()=0 |
| virtual uint8 | getAlphaValue (int32 x, int32 y) const =0 |
| virtual Color | getPixel (int32 x, int32 y) const =0 |
| return the full color info, including alpha channel, for the pixel at the given location | |
| virtual Image * | getSubsection (Rect &r)=0 |
| create a new image from a rectangular subsection of the current one | |
| Image * | getSubsection (RotatedRect &rr) |
| create a new image from a rectangular subsection of the current one | |
| virtual Image * | getSubsection (Quad &quad)=0 |
| create a new image from an Quad subsection of the current one | |
| virtual Image * | createImageScaled (float xscale, float yscale, FilterType filterType=filter_Best)=0 |
| create a new image by scaling the current one by a specific scaling factor | |
| virtual Image * | createImageScaledToFit (Rect r, FitType fitType=fit_Fill, FilterType filterType=filter_Best)=0 |
| create a new image by scaling the current one to fit a new bounding rectangle | |
| virtual Port * | setPort (Port *newPort) |
| control which port this image draws into | |
Public Member Functions inherited from ISerializable | |
| virtual uint32 | getSerializedSize (ISerializer *serializer) const =0 |
| Get number of bytes needed to hold serialized state. | |
| virtual void | serialize (ISerializer *serializer) const =0 |
| Write self out to a serializer. | |
| virtual void | deserialize (IDeserializer *deserializer)=0 |
| Read self from a deserializer. | |
| virtual uint32 | getMyClassTag () const =0 |
| Get a tag value that uniquely represents this class. | |
| ISerializable () | |
| virtual | ~ISerializable () |
Public Member Functions inherited from RefCountedObj | |
| virtual void | addRef () const throw () |
| virtual void | release () const throw () |
Static Public Member Functions | |
| static Image * | createImageFromData (const char *imageName, char *imageData, long imageDataLen) |
| static Image * | createImageFromFile (const char *imageFileName) |
| static int | registerImageForSerialization (Image *img) |
| static bool | setImageSerializationMode (ImageSerializationMode mode) |
Friends | |
| class | Port |
| class | ImageOpenGL |
| class | Sprite |
Image A bit image that can be blitted onto the screen You cannot create images directly, they must be loaded by the Graphics Manager
| enum FilterType |
| enum FitType |
|
static |
|
static |
|
pure virtual |
create a new image by scaling the current one by a specific scaling factor
|
pure virtual |
create a new image by scaling the current one to fit a new bounding rectangle
|
pure virtual |
If the image has alpha information it returns the alpha value (0 = transparent, 255 = opaque) If the image has no alpha information, then it returns getOpacity();
|
pure virtual |
|
virtual |
|
virtual |
convenient shortcuts to get the bounds of the image as a rectangle, offset by a point if desired if the image has multiple frames, it returns the bounds as the frame width, not the total width
Reimplemented in ImageStrip.
Reimplemented in ImageStrip.
|
pure virtual |
|
pure virtual |
return the full color info, including alpha channel, for the pixel at the given location
create a new image from a rectangular subsection of the current one
| Image* getSubsection | ( | RotatedRect & | rr | ) |
create a new image from a rectangular subsection of the current one
create a new image from an Quad subsection of the current one
|
pure virtual |
|
virtual |
Reimplemented in ImageStrip.
|
pure virtual |
does whatever is necessary to put the image into the final state for rasterization On OpenGL this converts it into an OpenGL texture
|
static |
|
pure virtual |
Retain the alpha channel even after the image has been prepared for rasterization.
|
pure virtual |
By default, data is released as soon as the image has been prepared for rasterization Calling retainData() will retain the data for use even after that has happened
|
pure virtual |
|
static |
|
pure virtual |
|
pure virtual |
|
friend |
|
friend |
|
friend |
1.8.2