Struct XRCameraImageConversionParams
Describes a set of conversion parameters for use with XRCameraImage's conversion methods.
Syntax
public struct XRCameraImageConversionParams : IEquatable<XRCameraImageConversionParams>
Constructors
XRCameraImageConversionParams(XRCameraImage, TextureFormat, CameraImageTransformation)
Declaration
public XRCameraImageConversionParams(XRCameraImage image, TextureFormat format, CameraImageTransformation transformation = default(CameraImageTransformation))
Parameters
Properties
The portion of the original image that will be used as input to the conversion.
Declaration
public RectInt inputRect { get; set; }
Property Value
Type |
Description |
RectInt |
The portion of the original image that will be converted.
|
outputDimensions
The dimensions of the converted image. The output dimensions must be less than or equal to the
inputRect's dimensions. If the output dimensions are less than the inputRect's
dimensions, downsampling is performed using nearest neighbor.
Declaration
public Vector2Int outputDimensions { get; set; }
Property Value
Type |
Description |
Vector2Int |
The dimensions of the converted image.
|
Declaration
public TextureFormat outputFormat { get; set; }
Property Value
Type |
Description |
TextureFormat |
The TextureFormat to which to convert.
|
The transformation to apply to the image during conversion.
Declaration
public CameraImageTransformation transformation { get; set; }
Property Value
Methods
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Equals(XRCameraImageConversionParams)
Declaration
public bool Equals(XRCameraImageConversionParams other)
Parameters
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
ToString()
Declaration
public override string ToString()
Returns
Operators
Equality(XRCameraImageConversionParams, XRCameraImageConversionParams)
Declaration
public static bool operator ==(XRCameraImageConversionParams lhs, XRCameraImageConversionParams rhs)
Parameters
Returns
Inequality(XRCameraImageConversionParams, XRCameraImageConversionParams)
Declaration
public static bool operator !=(XRCameraImageConversionParams lhs, XRCameraImageConversionParams rhs)
Parameters
Returns