1 // BBitmapBuffer.h 2 3 #ifndef B_BITMAP_BUFFER_H 4 #define B_BITMAP_BUFFER_H 5 6 #include "RenderingBuffer.h" 7 8 #include <AutoDeleter.h> 9 10 class BBitmap; 11 12 class BBitmapBuffer : public RenderingBuffer { 13 public: 14 BBitmapBuffer(BBitmap* bitmap); 15 virtual ~BBitmapBuffer(); 16 17 virtual status_t InitCheck() const; 18 19 virtual color_space ColorSpace() const; 20 virtual void* Bits() const; 21 virtual uint32 BytesPerRow() const; 22 virtual uint32 Width() const; 23 virtual uint32 Height() const; 24 25 // BBitmapBuffer 26 const BBitmap* Bitmap() const 27 { return fBitmap.Get(); } 28 private: 29 30 ObjectDeleter<BBitmap> 31 fBitmap; 32 }; 33 34 #endif // B_BITMAP_BUFFER_H 35