101 Image & flipAroundY();
117 Image & flipAroundX();
168 size_t numFaces = 1,
uint8 numMipMaps = 0);
208 return loadDynamicImage(data, width, height, 1, format);
233 size_t numFaces = 1,
size_t numMipMaps = 0);
258 return loadRawData(stream, width, height, 1, format);
310 Image & loadTwoImagesAsRGBA(
const String& rgbFilename,
const String& alphaFilename,
352 void save(
const String& filename);
366 uchar* getData(
void);
374 const uchar * getData()
const;
378 size_t getSize()
const;
382 uint8 getNumMipmaps()
const;
390 uint32 getWidth(
void)
const;
394 uint32 getHeight(
void)
const;
398 uint32 getDepth(
void)
const;
403 size_t getNumFaces(
void)
const;
407 size_t getRowSpan(
void)
const;
415 uchar getBPP()
const;
419 bool getHasAlpha()
const;
426 static void applyGamma(
uchar *buffer,
Real gamma,
size_t size,
uchar bpp );
433 ColourValue getColourAt(
size_t x,
size_t y,
size_t z)
const;
440 void setColourAt(
ColourValue const &cv,
size_t x,
size_t y,
size_t z);
445 PixelBox getPixelBox(
size_t face = 0,
size_t mipmap = 0)
const;
466 static void scale(
const PixelBox &src,
const PixelBox &dst, Filter filter = FILTER_BILINEAR);
469 void resize(
ushort width,
ushort height, Filter filter = FILTER_BILINEAR);
float Real
Software floating point type.
Class representing colour.
vector< const Image * >::type ConstImagePtrList
vector< Image * >::type ImagePtrList
Image & loadDynamicImage(uchar *data, uint32 width, uint32 height, PixelFormat format)
Stores a pointer to raw data in memory.
uint8 mNumMipmaps
The number of mipmaps the image contains.
4 byte pixel format, 1 byte for red, 1 byte for green, 1 byte for blue, and one byte for alpha ...
Structure used to define a box in a 3-D integer space.
PixelFormat
The pixel format used for images, textures, and render surfaces.
unsigned char uchar
In order to avoid finger-aches :)
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
Image & loadRawData(DataStreamPtr &stream, uint32 width, uint32 height, PixelFormat format)
Loads raw data from a stream.
Class representing an image file.
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
int mFlags
Image specific flags.
size_t mBufSize
The size of the image buffer.
bool mAutoDelete
A bool to determine if we delete the buffer or the calling app does.
uint32 mWidth
The width of the image in pixels.
PixelFormat mFormat
The pixel format of the image.
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
uint32 mHeight
The height of the image in pixels.
uint32 mDepth
The depth of the image.
uchar mPixelSize
The number of bytes per pixel.