resample method
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);
}
}