Method TryAcquireLatestCpuImage
TryAcquireLatestCpuImage(out XRCpuImage)
Attempts to acquire the latest camera image. This provides direct access to the raw pixel data, as well as to utilities to convert to RGB and Grayscale formats.
Declaration
public bool TryAcquireLatestCpuImage(out XRCpuImage cpuImage)
Parameters
Type | Name | Description |
---|---|---|
XRCpuImage | cpuImage | A valid XRCpuImage if this method returns |
Returns
Type | Description |
---|---|
bool | Returns |
Remarks
The returned XRCpuImage must be disposed to avoid resource leaks.
Exceptions
Type | Condition |
---|---|
NotSupportedException | Thrown if the implementation does not support camera image. |