Table of Contents

Class OverlayManagerCallbackEventArgs

Namespace
VisioForge.Core.Types.X.VideoEffects
Assembly
VisioForge.Core.dll

Overlay Manager callback args. Implements the EventArgs.

public class OverlayManagerCallbackEventArgs : EventArgs

Inheritance

Inherited Members

Properties

Context

Gets the context.

public Context Context { get; }

Property Value

Context

Duration

Gets the frame duration, or Zero when the source does not provide one.

public TimeSpan Duration { get; }

Property Value

TimeSpan

Remarks

Most live sources - cameras, RTSP, an appsrc without do-timestamp - leave buffer duration unset, so zero is the common case rather than an edge one. Check for it before pacing anything off this value, and never divide by it.

Timestamp

Gets the frame timestamp, counted from the pipeline start.

public TimeSpan Timestamp { get; }

Property Value

TimeSpan

Remarks

A frame that carries no presentation time at all - which live sources do emit - reports the last timestamp that was valid instead, so the value never jumps.

Methods

DrawImage(object, int, int, int?, int?)

Draws an image at the specified position. The image will not be disposed by this method. Supported image types: System.Drawing.Bitmap, SKBitmap, Android.Graphics.Bitmap, UIKit.UIImage, AppKit.NSImage.

public void DrawImage(object image, int x, int y, int? width = null, int? height = null)

Parameters

image object

The image to draw. Will not be disposed.

x int

The X coordinate.

y int

The Y coordinate.

width int?

Optional width. If not specified, uses the image's original width.

height int?

Optional height. If not specified, uses the image's original height.

See Also