Method TryGetLatestImage
TryGetLatestImage(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. This method is obsolete. Use TryAcquireLatestCpuImage(out XRCpuImage) instead.
Declaration
[Obsolete("Use TryAcquireLatestCpuImage instead. (2020-05-19)")]
public bool TryGetLatestImage(out XRCpuImage cpuImage)
Parameters
| Type | Name | Description |
|---|---|---|
| XRCpuImage | cpuImage | A valid XRCpuImage if this method returns true. |
Returns
| Type | Description |
|---|---|
| bool |
Remarks
The returned XRCpuImage must be disposed to avoid resource leaks.
Exceptions
| Type | Condition |
|---|---|
| NotSupportedException | Thrown if the implementation does not support camera image. |