Table of Contents

Delegate GraphicProcessorControl.ImageGrabCallback

Namespace
CapCognition.Net.Core.Processing
Assembly
CapCognition.Net.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

result GraphicProcessorControl.ImageGrabResult

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

cancellationToken CancellationToken

A cancellation token 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.