ImageProxy

public interface ImageProxy
implements AutoCloseable

androidx.camera.core.ImageProxy


An image proxy which has a similar interface as Image.

Summary

Nested classes

interface ImageProxy.PlaneProxy

A plane proxy which has an analogous interface as Image.Plane

Public methods

abstract void close()

Closes the underlying Image.

abstract Rect getCropRect()

Returns the crop rectangle.

abstract int getFormat()

Returns the image format.

abstract int getHeight()

Returns the image height.

abstract Image getImage()

Returns the android Image.

abstract ImageInfo getImageInfo()

Returns the ImageInfo.

abstract PlaneProxy[] getPlanes()

Returns the array of planes.

abstract int getWidth()

Returns the image width.

abstract void setCropRect(Rect rect)

Sets the crop rectangle.

Inherited methods

Public methods

close

public abstract void close ()

Closes the underlying Image.

See also:

getCropRect

public abstract Rect getCropRect ()

Returns the crop rectangle.

Returns
Rect