Class OverlayManagerCallbackEventArgs
- Namespace
- VisioForge.Core.Types.X.VideoEffects
- Assembly
- VisioForge.Core.dll
Overlay Manager callback args. Implements the EventArgs.
public class OverlayManagerCallbackEventArgs : EventArgsInheritance
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
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
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
imageobject-
The image to draw. Will not be disposed.
xint-
The X coordinate.
yint-
The Y coordinate.
widthint?-
Optional width. If not specified, uses the image's original width.
heightint?-
Optional height. If not specified, uses the image's original height.