Base class: Asset
This class provides an interface for loading, manipulating, and saving image data.
Property | Type | Description |
---|---|---|
format | const TextureFormat& | format of the pixel data |
size | const iVec2& | size of the pixmap |
blocks | const iVec2& | number of blocks in the image, for compressed formats |
pixels | const shared_ptr<Buffer>& | buffer containing pixel data |
blocksize | const int& | size of each block, for compressed formats |
Blit | Method | copies an area of a pixmap to another pixmap, with scaling and filtering |
Convert | Method | converts a pixmap to another format |
CopyRect | Method | copies an area of a pixmap to another pixmap |
Extract | Method | extracts part of the pixmap into a new pixmap |
Fill | Method | writes each pixel with the specified color |
ReadPixel | Method | reads a single pixel |
Resize | Method | resizes the pixmap |
Sample | Method | reads a pixel sample with bilinear filtering |
WritePixel | Method | writes a single pixel |
CreatePixmap | Function | Creates a new pixmap object. |
LoadPixmap | Function | Loads a pixmap object from a file. |