Image

AppCUI::Graphics::Image (class)

class Image

Public Functions

Image()
Image(const Image &img)
inline Image(Image &&img) noexcept
~Image()
bool Load(const std::filesystem::path &imageFilePath)
bool Create(uint32 width, uint32 height)
bool Create(uint32 width, uint32 height, string_view image)
bool Create(const uint8 *imageBuffer, uint32 size)
inline bool Create(Utils::BufferView buf)
bool CreateFromDIB(const uint8 *imageBuffer, uint32 size, bool isIcon)
inline bool CreateFromDIB(Utils::BufferView buf, bool isIcon)
bool SetPixel(uint32 x, uint32 y, const Color color)
bool SetPixel(uint32 x, uint32 y, Pixel colorRGB)
Pixel GetPixel(uint32 x, uint32 y, Pixel invalidIndexValue = {}) const
bool GetPixel(uint32 x, uint32 y, Pixel &color) const
Pixel ComputeSquareAverageColor(uint32 x, uint32 y, uint32 sz) const
bool Clear(Pixel color)
bool Clear(const Color color)
inline uint32 GetWidth() const
inline uint32 GetHeight() const
inline Pixel *GetPixelsBuffer() const
Image &operator=(const Image &img)
inline Image &operator=(Image &&img) noexcept