Method TryGetConvertedDataSize
TryGetConvertedDataSize(int, Vector2Int, TextureFormat, out int)
Method to be implemented by the provider to get the number of bytes required to store an image with the
given dimensions and TextureFormat
.
Declaration
public virtual bool TryGetConvertedDataSize(int nativeHandle, Vector2Int dimensions, TextureFormat format, out int size)
Parameters
Type | Name | Description |
---|---|---|
int | nativeHandle | A unique identifier for the camera image to convert. |
Vector2Int | dimensions | The dimensions of the output image. |
TextureFormat | format | The |
int | size | The number of bytes required to store the converted image. |
Returns
Type | Description |
---|---|
bool |
|
Exceptions
Type | Condition |
---|---|
NotSupportedException | Thrown if the implementation does not support camera image conversion. |