AImageReader
NameSpace: Media
Inherits from:
INullablePointer,
IDisposable
Public Fields
Format
public MediaFormat Format { get; set; }
Height
public int Height { get; set; }
MaxImages
public int MaxImages { get; set; }
Width
public int Width { get; set; }
Window
public ANativeWindow Window { get; set; }
Public Methods
void Dispose
public void Dispose()
bool TryAcquireLatestImage
public bool TryAcquireLatestImage(
out AImage outImage
)
Parameters
| Type | Name | Description |
|---|---|---|
| out AImage | outImage |
bool TryAcquireNextImage
public bool TryAcquireNextImage(
out AImage outImage
)
Parameters
| Type | Name | Description |
|---|---|---|
| out AImage | outImage |
bool TryCreate
public static bool TryCreate(
int width,
int height,
MediaFormat format,
int maxImages,
out AImageReader reader
)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | |
| int | height | |
| MediaFormat | format | |
| int | maxImages | |
| out AImageReader | reader |
bool TryCreate
public static bool TryCreate(
int width,
int height,
MediaFormat format,
AHardwareBuffer.Usage usage,
int maxImages,
out AImageReader reader
)
Parameters
| Type | Name | Description |
|---|---|---|
| int | width | |
| int | height | |
| MediaFormat | format | |
| AHardwareBuffer.Usage | usage | |
| int | maxImages | |
| out AImageReader | reader |
bool TrySetImageListener
public bool TrySetImageListener(
ImageListener listener
)
Parameters
| Type | Name | Description |
|---|---|---|
| ImageListener | listener |
Public Attributes
IsNull
public bool IsNull => value == IntPtr.Zero;