Class VideoCompositionElement
- Namespace
- VisioForge.Core.Types.X.VideoEffects
- Assembly
- VisioForge.Core.dll
Class VideoCompositionElement. Implements the IDisposable.
public class VideoCompositionElement : IDisposableInheritance
Implements
Inherited Members
Constructors
VideoCompositionElement(Bitmap, int, int)
Initializes a new instance of the VisioForge.Core.Types.X.VideoEffects.VideoCompositionElement class.
public VideoCompositionElement(Bitmap image, int x, int y)Parameters
VideoCompositionElement(SKBitmap, int, int)
Initializes a new instance of the VisioForge.Core.Types.X.VideoEffects.VideoCompositionElement class from an SkiaSharp.SKBitmap. Works on every platform. The element takes ownership of the bitmap and disposes it.
public VideoCompositionElement(SKBitmap image, int x, int y)Parameters
imageSKBitmap-
The image.
xint-
The left edge of the image in the video frame, in pixels.
yint-
The top edge of the image in the video frame, in pixels.
Properties
Alpha
Gets or sets the opacity of the whole image, from 0 (invisible) to 1 (opaque, the default), applied on top of the image's own alpha.
public double Alpha { get; set; }Property Value
Height
Gets or sets the height the image is drawn at, in pixels. 0 (the default) takes it from VisioForge.Core.Types.X.VideoEffects.VideoCompositionElement.Width at the image's aspect ratio, or the image's own height when both are 0.
public int Height { get; set; }Property Value
Width
Gets or sets the width the image is drawn at, in pixels. 0 (the default) takes it from VisioForge.Core.Types.X.VideoEffects.VideoCompositionElement.Height at the image's aspect ratio, or the image's own width when both are 0.
public int Width { get; set; }Property Value
X
Gets or sets the x.
public int X { get; set; }Property Value
Y
Gets or sets the y.
public int Y { get; set; }Property Value
Methods
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)Parameters
disposingbool-
trueto release both managed and unmanaged resources;falseto release only unmanaged resources.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()GetGstBuffer()
Gets the GST buffer.
public object GetGstBuffer()Returns
- object
-
System.Object.
GetImage()
Gets the image.
public Bitmap GetImage()Returns
- Bitmap
-
Bitmap.
SetGstBuffer(object)
Sets the GST buffer.
public void SetGstBuffer(object buffer)Parameters
bufferobject-
The buffer.