17 #ifndef DGL_IMAGE_BASE_HPP_INCLUDED 
   18 #define DGL_IMAGE_BASE_HPP_INCLUDED 
   20 #include "Geometry.hpp" 
   28     kImageFormatGrayscale,
 
   56     ImageBase(
const char* rawData, uint width, uint height, ImageFormat format);
 
  114     void loadFromMemory(const 
char* rawData, uint width, uint height, ImageFormat format = kImageFormatBGRA) noexcept;
 
  121                                 const 
Size<uint>& size,
 
  122                                 ImageFormat format = kImageFormatBGRA) noexcept;
 
  143     bool operator==(const 
ImageBase& image) const noexcept;
 
  144     bool operator!=(const 
ImageBase& image) const noexcept;
 
Definition: ImageBase.hpp:45
 
void drawAt(const GraphicsContext &context, int x, int y)
 
void loadFromMemory(const char *rawData, uint width, uint height, ImageFormat format=kImageFormatBGRA) noexcept
 
ImageBase(const char *rawData, uint width, uint height, ImageFormat format)
 
ImageFormat getFormat() const noexcept
 
ImageBase(const ImageBase &image)
 
const Size< uint > & getSize() const noexcept
 
uint getWidth() const noexcept
 
bool isInvalid() const noexcept
 
void draw(const GraphicsContext &context)
 
ImageBase(const char *rawData, const Size< uint > &size, ImageFormat format)
 
bool isValid() const noexcept
 
const char * getRawData() const noexcept
 
uint getHeight() const noexcept
 
Definition: Geometry.hpp:41