AndroidImage.Plane


class AndroidImage.Plane : ImagePlane


A Plane backed by an ImagePlane.

Summary

Public constructors

Plane(imagePlane: Image.Plane)

Public functions

open T?
<T : Any> unwrapAs(type: Class<T>)

Attempt to unwrap this object into an underlying type.

Public properties

open ByteBuffer
open Int
open Int

Public constructors

Plane

Added in 1.7.0-alpha02
Plane(imagePlane: Image.Plane)

Public functions

unwrapAs

open fun <T : Any> unwrapAs(type: Class<T>): T?

Attempt to unwrap this object into an underlying type.

This operation is not safe and should be used with caution as it makes no guarantees about the state of the underlying objects. In particular, implementations should assume that fakes, test wrappers will always return null. Finally this method should return null when unwrapping into the provided type is not supported.

Returns
T?

unwrapped object matching T or null

Public properties

buffer

open val bufferByteBuffer
See also
getBuffer

pixelStride

open val pixelStrideInt
See also
getPixelStride

rowStride

open val rowStrideInt
See also
getRowStride