#include <Pt/Gfx/Image.h>
Read-only wrap of pixel data. More...
Inherits ViewBase.
Public Member Functions | |
| void | reset (const Pt::uint8_t *data, Pt::ssize_t width, Pt::ssize_t height, Pt::ssize_t padding, const Format &format) |
| Reset to new data. | |
| void | reset (const Pt::uint8_t *data, Pt::ssize_t width, Pt::ssize_t height, Pt::ssize_t padding) |
| Reset to new data, keep existing format. | |
BasicConstImage refers to existing pixels and never allocates. Construct it from a const buffer, from a BasicImage, or from another const image. The source buffer must outlive this object.