|
const class ImageFormat * | format () const |
|
void | load (const std::string &filename) |
|
void | save (const std::string &filename) |
|
const Color4 & | fastGet (int x, int y) const |
|
void | fastSet (int x, int y, const Color4 &v) |
|
Color4 | bicubic (float x, float y, WrapMode wrap) const |
|
Color4 | bicubic (float x, float y) const |
|
Color4 | bicubic (const Vector2 &p, WrapMode wrap) const |
|
Color4 | bicubic (const Vector2 &p) const |
|
void | resize (uint32 newW, uint32 newH) |
|
bool | changed () |
|
void | setChanged (bool c) |
|
Color4 * | getCArray () |
|
const Color4 * | getCArray () const |
|
Array< Color4 > & | getArray () |
|
const Array< Color4 > & | getArray () const |
|
bool | inBounds (int x, int y) const |
|
bool | inBounds (const Vector2int16 &v) const |
|
const Color4 & | get (int x, int y, WrapMode wrap) const |
|
const Color4 & | get (int x, int y) const |
|
const Color4 & | get (const Vector2int16 &p) const |
|
const Color4 & | get (const Vector2int16 &p, WrapMode wrap) const |
|
Color4 & | get (int x, int y, WrapMode wrap) |
|
Color4 & | get (int x, int y) |
|
Color4 & | get (const Vector2int16 &p) |
|
void | set (const Vector2int16 &p, const Color4 &v) |
|
void | set (int x, int y, const Color4 &v, WrapMode wrap) |
|
void | set (int x, int y, const Color4 &v) |
|
void | set (const shared_ptr< Map2D< Color4, T > > &src) |
|
void | setAll (const Color4 &v) |
|
void | maybeFlipVertical (bool flip) |
|
virtual void | flipVertical () |
|
virtual void | flipHorizontal () |
|
virtual void | crop (int newX, int newY, int newW, int newH) |
|
virtual void | crop (const Rect2D &rect) |
|
Color4 | nearest (float x, float y, WrapMode wrap) const |
|
Color4 | nearest (float x, float y) const |
|
Color4 | nearest (const Vector2 &p) const |
|
Color4 | average () const |
|
Color4 | bilinear (float x, float y, WrapMode wrap) const |
|
Color4 | bilinear (float x, float y) const |
|
Color4 | bilinear (const Vector2 &p) const |
|
Color4 | bilinear (const Vector2 &p, WrapMode wrap) const |
|
int32 | width () const |
|
int32 | height () const |
|
Vector2int16 | size () const |
|
Rect2D | rect2DBounds () const |
|
size_t | sizeInMemory () const |
|
WrapMode | wrapMode () const |
|
void | setWrapMode (WrapMode m) |
|
virtual | ~ReferenceCountedObject () |
|
|
static Ref | createEmpty (int width, int height, WrapMode wrap=WrapMode::ERROR) |
|
static Ref | createEmpty (WrapMode wrap=WrapMode::ERROR) |
|
static Ref | fromFile (const std::string &filename, WrapMode wrap=WrapMode::ERROR) |
|
static Ref | fromArray (const class Color1unorm8 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR) |
|
static Ref | fromArray (const class Color3unorm8 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR) |
|
static Ref | fromArray (const class Color4unorm8 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR) |
|
static Ref | fromArray (const class Color1 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR) |
|
static Ref | fromArray (const class Color3 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR) |
|
static Ref | fromArray (const class Color4 *ptr, int width, int height, WrapMode wrap=WrapMode::ERROR) |
|
static Ref | fromImage4unorm8 (const shared_ptr< class Image4unorm8 > &im) |
|
static Ref | create (int w=0, int h=0, WrapMode wrap=WrapMode::ERROR) |
|
|
| Image4 (int w, int h, WrapMode wrap) |
|
void | copyArray (const Color1 *src, int w, int h) |
|
void | copyArray (const Color3 *src, int w, int h) |
|
void | copyArray (const Color4 *src, int w, int h) |
|
void | copyArray (const Color1unorm8 *src, int w, int h) |
|
void | copyArray (const Color3unorm8 *src, int w, int h) |
|
void | copyArray (const Color4unorm8 *src, int w, int h) |
|
const Color4 & | slowGet (int x, int y, WrapMode wrap) |
|
Color4 | bicubic (const Color4 *ctrl, double s) const |
|
| Map2D (int w, int h, WrapMode wrap) |
|
RGBA image with 32-bit floating point storage for each channel.
Whenever a method needs to convert from RGB to RGBA, A=1 is assumed.
Bilinear interpolation on Image4 is about 8x faster than on Image4unorm8 due to the large cost of converting int->float on modern machines.
- See also
- G3D::Image4unorm8, G3D::GImage.