33d85b510b
server side UtilityBitmap of a certain size. It sets up the DrawingEngine, the UtilityBitmap and the BitmapHWInterface necessary so that one can directly do drawing to a bitmap using the normal DrawingEngine interface. It provides an ExportToBitmap method that allocates an output UtilityBitmap of a specified size and color space where the content is put into, so a single instance of a BitmapDrawingEngine can be reused for various drawing. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25951 a95241bf-73f2-0310-859d-f6bbb57e9c96
26 lines
575 B
C++
26 lines
575 B
C++
#ifndef BITMAP_DRAWING_ENGINE_H
|
|
#define BITMAP_DRAWING_ENGINE_H
|
|
|
|
#include "DrawingEngine.h"
|
|
#include <Region.h>
|
|
|
|
class BitmapHWInterface;
|
|
class UtilityBitmap;
|
|
|
|
class BitmapDrawingEngine : public DrawingEngine {
|
|
public:
|
|
BitmapDrawingEngine();
|
|
virtual ~BitmapDrawingEngine();
|
|
|
|
status_t SetSize(int32 newWidth, int32 newHeight);
|
|
UtilityBitmap * ExportToBitmap(int32 width, int32 height,
|
|
color_space space);
|
|
|
|
private:
|
|
BitmapHWInterface * fHWInterface;
|
|
UtilityBitmap * fBitmap;
|
|
BRegion fClipping;
|
|
};
|
|
|
|
#endif // BITMAP_DRAWING_ENGINE_H
|