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