magickLiquidRescaleImage method
MagickLiquidRescaleImage() rescales image with seam carving.
This method runs inside an isolate different from the main isolate.
columns
: the number of columns in the scaled image.rows
: the number of rows in the scaled image.deltaX
: maximum seam transversal step (0 means straight seams).rigidity
: introduce a bias for non-straight seams (typically 0).
Implementation
Future<bool> magickLiquidRescaleImage({
required int columns,
required int rows,
required double deltaX,
required double rigidity,
}) async =>
await _magickCompute(
_magickLiquidRescaleImage,
_MagickLiquidRescaleImageParams(
_wandPtr.address,
columns,
rows,
deltaX,
rigidity,
),
);