|
| Image ()=default |
| 默认构造函数.
|
|
| Image (const std::filesystem::path &path) |
| 构造函数, 从文件载入图像. 更多...
|
|
| Image (const void *data, size_t sizeBytes, const Vector2i &size, int channels) |
| 构造函数, 从内存载入图像. 更多...
|
|
void | load (const std::filesystem::path &path) |
| 从文件载入图像. 更多...
|
|
void | load (const void *data, size_t sizeBytes, const Vector2i &size, int channels) |
| 从内存载入图像. 更多...
|
|
void | save (const std::filesystem::path &path) const |
| 导出图像到文件. 更多...
|
|
void | set_pixel (const Vector4f &color, const Vector2i &pos) |
| 获取图像数据.
|
|
Vector4f | get_pixel (const Vector2i &pos) const |
| 获取指定像素.
|
|
void | flip_horizontally () noexcept |
| 水平(左右)翻转.
|
|
void | flip_vertically () noexcept |
| 垂直(上下)翻转.
|
|
uint8_t * | data () noexcept |
| 获取图像数据.
|
|
const uint8_t * | data () const noexcept |
| 获取图像数据.
|
|
size_t | size_bytes () const noexcept |
| 获取图像数据大小.
|
|
Vector2i | size () const noexcept |
| 获取图像分辨率.
|
|
int | channel_count () const noexcept |
| 获取通道数.
|
|