Method ResampleBilinear
ResampleBilinear(float[], int, int, int, int)
Resamples scalar image data by uploading it to an RFloat texture, blitting it, and reading the result back.
public static float[] ResampleBilinear(float[] data, int width, int height, int newWidth, int newHeight)
Parameters
datafloat[]Source float data in row-major order.
widthintSource width.
heightintSource height.
newWidthintDestination width.
newHeightintDestination height.
Returns
- float[]
A new float array containing the bilinearly resampled data.
Exceptions
- ArgumentException
Thrown when the source dimensions do not match the source data length.