From 7c523f7eda0c35ef115338eb397373137ae0cd7c Mon Sep 17 00:00:00 2001 From: Gary Qian Date: Mon, 21 Oct 2019 12:29:19 -0700 Subject: [PATCH] Update ui.instantiateImageCodec docs to reflect what it does. (flutter/engine#13233) --- engine/src/flutter/lib/ui/painting.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/engine/src/flutter/lib/ui/painting.dart b/engine/src/flutter/lib/ui/painting.dart index eff01d44bd2..02032f0e65d 100644 --- a/engine/src/flutter/lib/ui/painting.dart +++ b/engine/src/flutter/lib/ui/painting.dart @@ -1653,10 +1653,9 @@ class Codec extends NativeFieldWrapperClass2 { /// /// The [targetWidth] and [targetHeight] arguments specify the size of the output /// image, in image pixels. If they are not equal to the intrinsic dimensions of the -/// image, then the image will be scaled after being decoded. If exactly one of -/// these two arguments is specified, then the aspect ratio will be maintained -/// while forcing the image to match the specified dimension. If both are not -/// specified, then the image maintains its real size. +/// image, then the image will be scaled after being decoded. If only one dimension +/// is specified, the omitted dimension will remain its original size. If both are +/// not specified, then the image maintains its real size. /// /// The returned future can complete with an error if the image decoding has /// failed.