#include <ShImage.hpp>
Inheritance diagram for SH::ShTypedImage< T >:


Public Member Functions | |
| ShTypedImage () | |
| Construct an empty image. | |
| ShTypedImage (int width, int height, int depth) | |
| Construct a black. | |
| ShTypedImage (const ShTypedImage &other) | |
| image at the given width/height/depth Copy an image | |
| ~ShTypedImage () | |
| ShTypedImage & | operator= (const ShTypedImage &other) |
| Copy the data from. | |
| int | width () const |
| one image to another 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. | |
| void | set_size (int width, int height, int depth) |
| T | operator() (int x, int y, int i) const |
| Set the size of the image and create the underlying memory Retrieve a. | |
| T & | operator() (int x, int y, int i) |
| particular component from the image. Retrieve a | |
| ShTypedImage | getNormalImage () |
| particular component from the image. | |
| const T * | data () const |
| T * | 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 36 of file ShImage.hpp.
1.4.5