Skip to content

SetImageOverlayFromHBitmap3

function

Delphi
function SetImageOverlayFromHBitmap3  (Index: LongInt; Bitmap: LongInt; ReleaseBitmap: Boolean): Boolean;
C++Builder
bool __fastcall SetImageOverlayFromHBitmap3(System::LongInt Index, HBITMAP Bitmap, bool ReleaseBitmap);
C#
public bool SetImageOverlayFromHBitmap3(int Index, IntPtr Bitmap, bool ReleaseBitmap);
VB.NET
Public Function SetImageOverlayFromHBitmap3(Index As Integer, Bitmap As IntPtr, ReleaseBitmap As Boolean) As Boolean
C++/Qt
BOOL SetImageOverlayFromHBitmap3 (int Index, HBITMAP Bitmap, BOOL ReleaseBitmap);

Loads the image overlay specified by Index (0 for the 1st image overlay, 1 for the 2nd, etc.) from the specified bitmap handle.

ReleaseBitmap = true: TVideoGrabber takes the ownership of the bitmap handle and deletes it when it is no longer needed, the application must not delete it. ReleaseBitmap = false: the bitmap is copied and the application keeps the ownership of the handle, as with SetImageOverlayFromHBitmap2.

See the Image overlays chapter for global information about this feature.