| Class Overview |
BBitmapStream(BBitmap
* map = NULL);
Creates a new instance of BBitmapStream
.
If map
is NULL
, the stream is
initialized to be empty. Otherwise, the
BBitmap
is converted to a translator bitmap and placed in the stream. The application shares the
BBitmap
with the BBitmapStream
object. It therefore shouldn't delete the
BBitmap
without first calling
DetachBitmap()
.
status_t DetachBitmap(BBitmap
** outMap);
Returns, in outMap
, a
BBitmap
representing the image contained in the
BBitmapStream
. Once DetachBitmap()
has been called, no further operations
should be performed on the BBitmapStream
.
Return Code | Description |
---|---|
| Success. |
| |
| There is no
|
off_t Position() const;
ssize_t ReadAt(off_t position,
void* buffer,
size_t size);
off_t Seek(off_t position,
int32 whence);
status_t SetSize(off_t size) const;
ssize_t WriteAt(off_t pos,
const void* data,
size_t size);
These methods provide the implementation for the
BPositionIO
.
The class functions identically to
BPositionIO
with the exception of
ReadAt()
and
WriteAt()
,
which read and write only translator bitmaps as described in
the class introduction.