Method Convert
Convert(ConversionParams, IntPtr, int)
Convert the XRCpuImage
to one of the supported formats using the specified
conversionParams
.
Declaration
public void Convert(XRCpuImage.ConversionParams conversionParams, IntPtr destinationBuffer, int bufferLength)
Parameters
Type | Name | Description |
---|---|---|
XRCpuImage.ConversionParams | conversionParams | The parameters for the image conversion. |
IntPtr | destinationBuffer | A pointer to memory to which to write the converted image. |
int | bufferLength | The number of bytes pointed to by |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the |
InvalidOperationException | Thrown if the conversion failed. |
See Also
Convert(ConversionParams, NativeSlice<byte>)
Convert the XRCpuImage
to one of the supported formats using the specified
conversionParams
.
Declaration
public void Convert(XRCpuImage.ConversionParams conversionParams, NativeSlice<byte> destinationBuffer)
Parameters
Type | Name | Description |
---|---|---|
XRCpuImage.ConversionParams | conversionParams | The parameters for the image conversion. |
NativeSlice<byte> | destinationBuffer | The destination buffer for the converted data. The buffer must be large enough to hold the converted data, that is, at least as large as the value returned by GetConvertedDataSize(ConversionParams). |
Exceptions
Type | Condition |
---|---|
ArgumentException | Thrown if the |
InvalidOperationException | Thrown if the conversion failed. |