From d63f0455e4b1d8d746117e8e9c632943990cafec Mon Sep 17 00:00:00 2001 From: Ken Wong Date: Thu, 4 Jan 2024 21:45:38 +0800 Subject: [PATCH] Support maintainAspect and backgroundColor in copyResize() --- lib/src/command/command.dart | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/src/command/command.dart b/lib/src/command/command.dart index de9ccf40..e5fa61b8 100644 --- a/lib/src/command/command.dart +++ b/lib/src/command/command.dart @@ -1119,9 +1119,15 @@ class Command { void copyResize( {int? width, int? height, + bool? maintainAspect, + Color? backgroundColor, Interpolation interpolation = Interpolation.nearest}) { subCommand = CopyResizeCmd(subCommand, - width: width, height: height, interpolation: interpolation); + width: width, + height: height, + maintainAspect: maintainAspect, + backgroundColor: backgroundColor, + interpolation: interpolation); } void copyResizeCropSquare(