ImageEn, unit iexBitmaps

TIEBitmap.SaveRAWToBufferOrStream

TIEBitmap.SaveRAWToBufferOrStream


Declaration


procedure SaveRAWToBufferOrStream(Buffer: pointer; Stream: TStream; StreamHasSize: boolean = true);


Description


Saves the image using an internal format preserving pixel format and alpha channel.
Location field will be lost. Only the image and its description is saved.
If the image has alpha channel this is also saved.
You can save the image inside a buffer or a stream.
Saving in a buffer you must specify a valid Buffer (of size returned by CalcRAWSize) and Stream must be nil.
Saving in a Stream the Buffer parameter must be nil.
Set StreamHasSize = true if specified Stream can set Size of stream.


See Also


- LoadRAWFromBufferOrStream
- CalcRAWSize