#include <ShImage.hpp>
Inheritance diagram for SH::ShImage:
Public Member Functions | |
ShImage () | |
Construct an empty image. | |
ShImage (int width, int height, int depth) | |
Construct a black image at the given width/height/depth. | |
ShImage (const ShImage &other) | |
Copy an image. | |
ShImage & | operator= (const ShImage &other) |
Copy the data from one image to another. | |
int | width () const |
Determine the width of the image. | |
int | height () const |
Determine the height of the image. | |
int | elements () const |
Determine the depth (floats per pixel) of the image. | |
float | operator() (int x, int y, int i) const |
Retrieve a particular component from the image. | |
float & | operator() (int x, int y, int i) |
Retrieve a. | |
void | loadPng (const std::string &filename) |
Load a PNG file into this image. | |
void | savePng (const std::string &filename, int inverse_alpha=0) |
Save a PNG image into. | |
void | savePng16 (const std::string &filename, int inverse_alpha=0) |
Save a PNG image into. | |
ShImage | getNormalImage () |
const float * | data () const |
float * | data () |
void | dirty () |
ShMemoryPtr | memory () |
ShPointer< const ShMemory > | memory () const |
This class makes it easy to read PNG files and the like from files. It stores the image data in a memory object which can then be shared with array, table, and texture objects.
Definition at line 42 of file ShImage.hpp.