30 #ifndef _SILLYImageContext_h_
31 #define _SILLYImageContext_h_
32 #include "SILLYBase.h"
43 class SILLY_EXPORT ImageContext
50 virtual ~ImageContext();
56 void setDestination(
byte* pixels,
size_t length,
PixelFormat format);
62 void setNextPixel(
byte red,
byte green,
byte bleu,
byte alpha);
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);
88 ImageContext(
size_t width,
size_t height);
95 size_t d_currentOffset;
99 ImageContext(ImageContext&);
100 ImageContext& operator=(ImageContext&);
107 #ifdef SILLY_OPT_INLINE
108 #include "SILLYImageContext.icpp"
111 #endif // end of guard _SILLYImageContext_h_