[Overview][Classes][Index] Reference for unit 'bitmapresource' (#fcl-res)

TBitmapResource.BitmapData

Resource data as a BMP stream

Declaration

Source position: bitmapresource.pp line 47

public property TBitmapResource.BitmapData : TStream
  read GetBitmapData;

Description

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.

See also

TBitmapResource.SetCustomBitmapDataStream

  

Sets a custom stream as the underlying stream for BitmapData

TAbstractResource.RawData

  

The raw resource data stream

TAbstractResource.UpdateRawData

  

Updates RawData stream.


Documentation generated on: Nov 16 2015