TIEBitmap.EncapsulateMemory
Declaration
procedure EncapsulateMemory(mem: Pointer; bmpWidth, bmpHeight: Integer; bmpPixelFormat: TIEPixelFormat; DoFreeImage: Boolean; Origin: TIEBitmapOrigin = ieboBottomLeft);
Description
Encapsulates an existing bitmap from its buffer.
It is useful to pass a
TBitmap object to routines that require a TIEBitmap.
If
DoFreeImage is True, the buffer will be freed when the object is destroyed.
Origin specifies the image orientation (default is bottom-left, that is Windows default. For example set ieboTopLeft with OpenCV images).