Go to the documentation of this file.
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);
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
uint32 mHeight
The height of the image in pixels.
@ PF_BYTE_RGBA
4 byte pixel format, 1 byte for red, 1 byte for green, 1 byte for blue, and one byte for alpha
Class representing an image file.
bool mAutoDelete
A bool to determine if we delete the buffer or the calling app does.
size_t mBufSize
The size of the image buffer.
PixelFormat mFormat
The pixel format of the image.
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
PixelFormat
The pixel format used for images, textures, and render surfaces.
uint32 mWidth
The width of the image in pixels.
vector< const Image * >::type ConstImagePtrList
unsigned char uchar
In order to avoid finger-aches :)
Structure used to define a box in a 3-D integer space.
Image & loadDynamicImage(uchar *data, uint32 width, uint32 height, PixelFormat format)
Stores a pointer to raw data in memory.
vector< Image * >::type ImagePtrList
Class representing colour.
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
uint8 mNumMipmaps
The number of mipmaps the image contains.
float Real
Software floating point type.
uchar mPixelSize
The number of bytes per pixel.
int mFlags
Image specific flags.
uint32 mDepth
The depth of the image.
Image & loadRawData(DataStreamPtr &stream, uint32 width, uint32 height, PixelFormat format)
Loads raw data from a stream.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15