# EGLImageKHR

Artifact: [androidx.graphics:graphics-core](https://developer.android.com/jetpack/androidx/releases/graphics) [View Source](https://cs.android.com/search?q=file:androidx/opengl/EGLImageKHR.kt+class:androidx.opengl.EGLImageKHR) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

*** ** * ** ***


```
class EGLImageKHR : EGLHandle
```

<br />

*** ** * ** ***

EGLImageKHR is an object which can be used to create EGLImage target resources (inside client APIs). This is similar to EGL's EGLImage API except the KHR suffix indicates it is generated as part of the extension APIs namely through `https://developer.android.com/reference/kotlin/androidx/opengl/EGLExt#eglCreateImageFromHardwareBuffer(android.opengl.EGLDisplay,android.hardware.HardwareBuffer)`

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/opengl/EGLImageKHR#EGLImageKHR(kotlin.Long)(nativeHandle: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` |

| ### Public functions |
|---|---|
| `open operator https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/opengl/EGLImageKHR#equals(kotlin.Any)(other: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?)` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/opengl/EGLImageKHR#hashCode()()` |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/opengl/EGLImageKHR#toString()()` |

| ### Public properties |
|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/opengl/EGLImageKHR#nativeHandle()` Returns the native handle of the wrapped EGL object. |

## Public constructors

### EGLImageKHR

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/graphics#1.0.0)

```
EGLImageKHR(nativeHandle: Long)
```

## Public functions

### equals

```
open operator fun equals(other: Any?): Boolean
```

### hashCode

```
open fun hashCode(): Int
```

### toString

```
open fun toString(): String
```

## Public properties

### nativeHandle

```
open val nativeHandle: Long
```

Returns the native handle of the wrapped EGL object. This handle can be cast to the corresponding native type on the native side.

For example, EGLDisplay dpy = (EGLDisplay)handle;

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | the native handle of the wrapped EGL object. |