ImageEn, unit iexBitmaps

TIEBitmap.EncapsulateMemory

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).