Skip to main content

EglImage Class

Definition​

Assembly:Avalonia.OpenGL
Package:Avalonia

Wraps a native EGLImageKHR handle and destroys it via eglDestroyImageKHR on disposal.

public class EglImage

Inheritance: object -> EglImage

Implements: IDisposable

Constructors​

NameDescription
EglImageInitializes a new Avalonia.OpenGL.Egl.EglImage wrapping an existing EGLImageKHR handle.

EglImage Constructor​

Initializes a new Avalonia.OpenGL.Egl.EglImage wrapping an existing EGLImageKHR handle.

public EglImage(Avalonia.OpenGL.Egl.EglDisplay display, IntPtr handle)

Parameters​

display Avalonia.OpenGL.Egl.EglDisplay

The EGL display that owns the image.

handle IntPtr

A valid (non-zero) EGLImageKHR handle.

Exceptions​

Methods​

NameDescription
DisposeDestroys the underlying EGLImageKHR. Safe to call more than once.

Dispose Method​

Destroys the underlying EGLImageKHR. Safe to call more than once.

public void Dispose()

Properties​

NameDescription
HandleGets the native EGLImageKHR handle, or IntPtr.Zero once disposed.

Handle Property​

Gets the native EGLImageKHR handle, or IntPtr.Zero once disposed.

public IntPtr Handle { get; set; }