Simple Image Loading LibrarY
0.1.0
|
30 #ifndef _SILLYImageContext_h_
31 #define _SILLYImageContext_h_
32 #include "SILLYBase.h"
64 size_t getWidth()
const;
65 size_t getHeight()
const;
74 bool flipVertically();
76 void setWidth(
size_t width);
78 void setHeight(
size_t height);
95 size_t d_currentOffset;
107 #ifdef SILLY_OPT_INLINE
108 #include "SILLYImageContext.icpp"
111 #endif // end of guard _SILLYImageContext_h_
Simple Image Loading LibrarY namespace.
ImageContext(size_t width, size_t height)
Constructor.
PixelFormat
List all pixel format supported.
Store the data needed by an ImageLoader object during the parsing of an image.
virtual ~ImageContext()
Destructor.
void setDestination(byte *pixels, size_t length, PixelFormat format)
Set the destination of the loading.
void setNextPixel(byte red, byte green, byte bleu, byte alpha)
Set the next pixel of the image.