fBitmapBounds
BRegion bitmapRegion(fBitmapBounds);
return fBitmapBounds;
BRect fBitmapBounds;
&& !sourceRect.Intersects(fBitmapBounds))
if (sourceRect.left < fBitmapBounds.left) {
float diff = fBitmapBounds.left - sourceRect.left;
sourceRect.left = fBitmapBounds.left;
if (sourceRect.top < fBitmapBounds.top) {
float diff = fBitmapBounds.top - sourceRect.top;
sourceRect.top = fBitmapBounds.top;
if (sourceRect.right > fBitmapBounds.right) {
float diff = sourceRect.right - fBitmapBounds.right;
sourceRect.right = fBitmapBounds.right;
if (sourceRect.bottom > fBitmapBounds.bottom) {
float diff = sourceRect.bottom - fBitmapBounds.bottom;
sourceRect.bottom = fBitmapBounds.bottom;
BBitmap* conversionBitmap = new(std::nothrow) BBitmap(fBitmapBounds,
(uint32)fBitmapBounds.IntegerWidth() + 1,
(uint32)fBitmapBounds.IntegerHeight() + 1,
fBitmapBounds = bitmap->Bounds();
fBitmapBounds.OffsetBy(-fBitmapBounds.left, -fBitmapBounds.top);
fBitmapBounds.left, fBitmapBounds.top,
fBitmapBounds.right, fBitmapBounds.bottom);
BRect fBitmapBounds;