GetLastFrameBitmapBits
TVideoGrabber.GetLastFrameBitmapBits |
||||
|
|
|
Returns a pointer to the bitmap bits of the last video frame
Declaration
function GetLastFrameBitmapBits (BufferIndex: LongInt; WithOverlays: Boolean; ReleaseFrame: Boolean): Pointer;
void *__fastcall GetLastFrameBitmapBits(int BufferIndex, bool WithOverlays, bool ReleaseFrame);
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.:
...
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 GetLastFrameAsBitmapBits2.
See Also
TAutoFileName TFrameCaptureDest TOnFrameCaptureCompleted BurstCount BurstInterval BurstMode BurstType CaptureFrameSyncTo CaptureFrameTo FrameCaptureHeight FrameCaptureWidth FrameCaptureWithoutOverlay FrameCaptureZoomSize GetFrameInfoString GetLastFrameAsHBITMAP GetLastFrameAsTBitmap GetLastFrameBitmapBits2 GetLastFrameWaitTimeoutMs JPEGPerformance JPEGProgressiveDisplay JPEGQuality Last_BurstFrameCapture_FileName Last_CaptureFrameTo_FileName OnDiskFull OnFrameBitmap SetFrameCaptureBounds StoragePath WebcamStillCaptureButton
Created with the Personal Edition of HelpNDoc: Effortlessly bring your documentation online with HelpNDoc