Table of Contents

Class VideoCompositionElement

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

Class VideoCompositionElement. Implements the IDisposable.

public class VideoCompositionElement : IDisposable

Inheritance

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

image Bitmap

The image.

x int

The x.

y int

The y.

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

image SKBitmap

The image.

x int

The left edge of the image in the video frame, in pixels.

y int

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

double

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

int

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

int

X

Gets or sets the x.

public int X { get; set; }

Property Value

int

Y

Gets or sets the y.

public int Y { get; set; }

Property Value

int

Methods

Dispose(bool)

Releases unmanaged and - optionally - managed resources.

protected virtual void Dispose(bool disposing)

Parameters

disposing bool

true to release both managed and unmanaged resources; false to 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

buffer object

The buffer.

See Also