AutoCloseablepublic abstract class PixelMap extends Object implements AutoCloseable
Applications can use methods in this class to obtain basic pixel map information.
| 限定符和类型 | 类 | 说明 |
|---|---|---|
static class |
PixelMap.PixelPlane |
Represents a color plane of pixel map data.
|
| 构造器 | 说明 |
|---|---|
PixelMap() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
abstract void |
close() |
Closes this pixel map.
|
abstract int |
obtainPixelFormat() |
Obtains the pixel format.
|
abstract int |
obtainPixelHeight() |
Obtains the number of pixels in each column of this pixel map.
|
abstract PixelMap.PixelPlane[] |
obtainPixelPlanes() |
Obtains the array of pixel planes for this pixel map.
|
abstract long |
obtainPixelTimestamp() |
Obtains the timestamp of this pixel map in nanoseconds.
|
abstract int |
obtainPixelWidth() |
Obtains the number of pixels in each row of this pixel map.
|
void |
setClipRectangle(Rect clipRect) |
Sets the clip rectangle in this pixel map.
|
public abstract int obtainPixelFormat()
public abstract int obtainPixelWidth()
public abstract int obtainPixelHeight()
public abstract long obtainPixelTimestamp()
public void setClipRectangle(Rect clipRect)
clipRect - Indicates the clip rectangle to set.public abstract PixelMap.PixelPlane[] obtainPixelPlanes()
public abstract void close()
close 在接口中 AutoCloseable