PrefilledBitmap

 

Derived from: public BBitmap

Declared in: PrefilledBitmap.h

Library: none


Overview

Creates a BBitmap in which the image data is specified up front, rather than having to make a separate call to SetBits().


Constructor and Destructor


PrefilledBitmap()

 
      PrefilledBitmap(BRect bounds, color_space space, const void *data, int32 length = 0,
            bool acceptsViews = false, bool needsContiguousMemory = false)
 

Works just like the BBitmap constructor. The only difference is the presence of the data and length fields. If the length is 0, then the length of the data will be calculated for you, and will be the number of bytes required for the entire bitmap, given the color space specified. The data must be in the format expected by a call to SetBits() for the specified color space.


~PrefilledBitmap()

 
      ~PrefilledBitmap()

 

Destroys the bitmap.


By Brian Tietz

Copyright 2000

Bug reports (including documentation errors) and feature requests can be sent to briant@timelinevista.com.