#ifndef LIME_GRAPHICS_IMAGE_BUFFER_H #define LIME_GRAPHICS_IMAGE_BUFFER_H #include #include #include namespace lime { class ImageBuffer { public: ImageBuffer (); ImageBuffer (value imageBuffer); ~ImageBuffer (); void Blit (const unsigned char *data, int x, int y, int width, int height); void BlitRow (const unsigned char *data, int sourcePosition, int destPosition, int sourceW); void Resize (int width, int height, int bitsPerPixel = 32); int Stride (); value Value (); int bitsPerPixel; ArrayBufferView *data; PixelFormat format; int height; bool premultiplied; bool transparent; int width; private: value mValue; }; } #endif