| [Overview][Classes][Index] | 
Resource data as a BMP stream
Source position: bitmapresource.pp line 47
|  public property TBitmapResource.BitmapData : TStream | 
BitmapData property gives access to resource data in a BMP file-like stream, unlike RawData.
BitmapData does not create a copy of RawData so memory usage is generally kept limited.
You can also set a custom stream as the underlying stream for BitmapData via SetCustomBitmapDataStream, much like SetCustomRawDataStream does for RawData. This is useful when you want a TBitmapResource to be created from a bmp file for which you have a stream.
| Remark: | If you need to access RawData after you modified BitmapData, be sure to call UpdateRawData first. This isn't needed however when resource is written to a stream, since TResources takes care of it. | 
| 
 | Sets a custom stream as the underlying stream for BitmapData | |
| 
 | The raw resource data stream | |
| 
 | Updates RawData stream. |