Delegate GraphicProcessorControl.ImageGrabCallback
- Namespace
- CapCognition.Maui.Core.Shared
- Assembly
- CapCognition.Maui.Core.dll
Represents the method that handles image grab events and processes the result of an image acquisition operation.
public delegate void GraphicProcessorControl.ImageGrabCallback(ref GraphicProcessorControl.ImageGrabResult result, CancellationToken cancellationToken)
Parameters
resultGraphicProcessorControl.ImageGrabResultA reference to an GraphicProcessorControl.ImageGrabResult structure containing the result of the image grab operation. The callback has to modify this result to deliver the result and control the processing.
cancellationTokenCancellationTokenA reference to a CancellationToken that can be used to cancel the image grab operation.
Remarks
Use this delegate to define a callback that is invoked when an image should be captured.
Modifications to result within the callback
will affect the result seen by subsequent handlers or consumers.