resample method

Image resample(
  1. int width,
  2. int height,
  3. Transform mode
)

Implementation

Image resample(int width, int height, Transform mode) {
  final box = malloc.call<Float>(4);
  try {
    box
        .asTypedList(4)
        .setAll(0, [0, 0, this.width.toDouble(), this.height.toDouble()]);
    return Image._(ImagingResample(_inst, width, height, mode.index, box));
  } finally {
    malloc.free(box);
  }
}