Class GraphicOverlayLayer<TResult, TOptions>
public abstract class GraphicOverlayLayer<TResult, TOptions> : IGraphicOverlayLayer, IDisposable where TResult : RecognitionProcessorResult where TOptions : RecognitionOptions
Type Parameters
TResultTOptions
- Inheritance
-
GraphicOverlayLayer<TResult, TOptions>
- Implements
- Inherited Members
Constructors
GraphicOverlayLayer(IGraphicOverlay)
public GraphicOverlayLayer(IGraphicOverlay overlay)
Parameters
overlayIGraphicOverlay
Fields
Lock
protected readonly object Lock
Field Value
Options
protected TOptions? Options
Field Value
- TOptions
Overlay
protected IGraphicOverlay? Overlay
Field Value
ProcessingStarted
protected bool ProcessingStarted
Field Value
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
canvasICanvascaptureResolutionSizeForientationDeviceSurfaceOrientationuseFillPreviewbool
Invalidate()
protected void Invalidate()
NotifyProcessingStarted(bool)
public virtual void NotifyProcessingStarted(bool started)
Parameters
startedbool
OverlayItemRemoved()
public void OverlayItemRemoved()
SetNewOverlay(IGraphicOverlay?)
public void SetNewOverlay(IGraphicOverlay? overlay)
Parameters
overlayIGraphicOverlay
SetNewResults(List<TResult>)
public virtual void SetNewResults(List<TResult> results)
Parameters
resultsList<TResult>
SetOptions(TOptions)
public virtual void SetOptions(TOptions options)
Parameters
optionsTOptions