5 #include "BBitmapBuffer.h"
8 BBitmapBuffer::BBitmapBuffer(BBitmap
* bitmap
)
14 BBitmapBuffer::~BBitmapBuffer()
21 BBitmapBuffer::InitCheck() const
23 status_t ret
= B_NO_INIT
;
25 ret
= fBitmap
->InitCheck();
31 BBitmapBuffer::ColorSpace() const
33 if (InitCheck() >= B_OK
)
34 return fBitmap
->ColorSpace();
35 return B_NO_COLOR_SPACE
;
40 BBitmapBuffer::Bits() const
42 if (InitCheck() >= B_OK
)
43 return fBitmap
->Bits();
49 BBitmapBuffer::BytesPerRow() const
51 if (InitCheck() >= B_OK
)
52 return fBitmap
->BytesPerRow();
58 BBitmapBuffer::Width() const
60 if (InitCheck() >= B_OK
)
61 return fBitmap
->Bounds().IntegerWidth() + 1;
67 BBitmapBuffer::Height() const
69 if (InitCheck() >= B_OK
)
70 return fBitmap
->Bounds().IntegerHeight() + 1;