GetLastFrameBitmapBits
method
Delphi
function GetLastFrameBitmapBits (BufferIndex: LongInt; WithOverlays: Boolean; ReleaseFrame: Boolean): NativeInt;
C++Builder
void * __fastcall GetLastFrameBitmapBits(System::LongInt BufferIndex, bool WithOverlays, bool ReleaseFrame);
C#
public IntPtr GetLastFrameBitmapBits(int BufferIndex, bool WithOverlays, bool ReleaseFrame);
VB.NET
Public Function GetLastFrameBitmapBits(BufferIndex As Integer, WithOverlays As Boolean, ReleaseFrame As Boolean) As IntPtr
C++/Qt
void * GetLastFrameBitmapBits (int BufferIndex, BOOL WithOverlays, BOOL ReleaseFrame);
Returns a pointer to the bitmap bits of the last video frame
Remarks
Invoke this function to lock and get access to the bitmap bits.
Immediately after processing the bitmap bits, invoke it again with the "ReleaseFrame" set to false to unlock the sample.
E.g.:
...
BYTE pBits = GetLastFrameBitmapBits (0, true, false)
// do what you need with the bitmap bits
GetLastFrameBitmapBits (0, true, true)
...
Note: To get the bitmap dimensions, invoke a first time GetLastFrameBitmapBits2.