Property outputDimensions
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. |
Examples
For example, you could supply (inputRect.width / 2, inputRect.height / 2) to get a half resolution image.
This can decrease the time it takes to perform a color conversion.