Table of Contents

Class GraphicOverlayLayer<TResult, TOptions>

Namespace
CapCognition.Maui.Core.Shared.Common
Assembly
CapCognition.Maui.Core.dll
public abstract class GraphicOverlayLayer<TResult, TOptions> : IGraphicOverlayLayer, IDisposable where TResult : RecognitionProcessorResult where TOptions : RecognitionOptions

Type Parameters

TResult
TOptions
Inheritance
GraphicOverlayLayer<TResult, TOptions>
Implements
Inherited Members

Constructors

GraphicOverlayLayer(IGraphicOverlay)

public GraphicOverlayLayer(IGraphicOverlay overlay)

Parameters

overlay IGraphicOverlay

Fields

Lock

protected readonly object Lock

Field Value

object

Options

protected TOptions? Options

Field Value

TOptions

Overlay

protected IGraphicOverlay? Overlay

Field Value

IGraphicOverlay

ProcessingStarted

protected bool ProcessingStarted

Field Value

bool

Results

protected readonly List<TResult> Results

Field Value

List<TResult>

Methods

Clear()

public virtual void Clear()

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()

DrawElements(ICanvas, SizeF, DeviceSurfaceOrientation, bool)

public abstract void DrawElements(ICanvas canvas, SizeF captureResolution, DeviceSurfaceOrientation orientation, bool useFillPreview)

Parameters

canvas ICanvas
captureResolution SizeF
orientation DeviceSurfaceOrientation
useFillPreview bool

Invalidate()

protected void Invalidate()

NotifyProcessingStarted(bool)

public virtual void NotifyProcessingStarted(bool started)

Parameters

started bool

OverlayItemRemoved()

public void OverlayItemRemoved()

SetNewOverlay(IGraphicOverlay?)

public void SetNewOverlay(IGraphicOverlay? overlay)

Parameters

overlay IGraphicOverlay

SetNewResults(List<TResult>)

public virtual void SetNewResults(List<TResult> results)

Parameters

results List<TResult>

SetOptions(TOptions)

public virtual void SetOptions(TOptions options)

Parameters

options TOptions