Table of Contents

Method ResampleBilinear

Namespace
Pinwheel.Vista
Assembly
Pinwheel.Vista.Runtime.dll

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

data float[]

Source float data in row-major order.

width int

Source width.

height int

Source height.

newWidth int

Destination width.

newHeight int

Destination 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.