TVideoGrabber.GetLastFrameBitmapBits2

Prev

Next

TVideoGrabber

Methods

 




































































































Returns a pointer to the bitmap bits of the last video frame, with the bitmap format information


Declaration
function GetLastFrameBitmapBits2 (BufferIndex: LongInt; WithOverlays: Boolean; ReleaseFrame: Boolean; out BitmapWidth: LongInt; out BitmapHeight: LongInt; out BitmapLineSize: LongInt; out BitmapSize: LongInt; out BitmapBitsPerPixel: LongInt): Pointer;


void *__fastcall GetLastFrameBitmapBits2(int BufferIndex, bool WithOverlays, bool ReleaseFrame, /* outint &BitmapWidth, /* outint &BitmapHeight, /* outint &BitmapLineSize, /* outint &BitmapSize, /* outint &BitmapBitsPerPixel);

Description

Returns a pointer to the bitmap bits of the last video frame.

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

...

int BitmapWidth, BitmapHeight, BitmapLineSize, BitmapSize, BitmapBitsPerPixel;

BYTE *pBits = GetLastFrameBitmapBits2 (0, true, false, &BitmapWidth, &BitmapHeight, &BitmapLineSize, &BitmapSize, &BitmapBitsPerPixel);

CopyMemory (pDest, pBits, BitMapSize);

GetLastFrameBitmapBits (0, true, true, null, null, null, null, null);

...


See Also
TAutoFileName TFrameCaptureDest TOnFrameCaptureCompleted BurstCount BurstInterval BurstMode BurstType CaptureFrameSyncTo CaptureFrameTo FrameCaptureHeight FrameCaptureWidth FrameCaptureWithoutOverlay FrameCaptureZoomSize GetFrameInfoString GetLastFrameAsHBITMAP GetLastFrameAsTBitmap GetLastFrameBitmapBits GetLastFrameWaitTimeoutMs JPEGPerformance JPEGProgressiveDisplay JPEGQuality Last_BurstFrameCapture_FileName Last_CaptureFrameTo_FileName OnDiskFull OnFrameBitmap SetFrameCaptureBounds StoragePath WebcamStillCaptureButton