@@ -5366,22 +5366,12 @@ abstract class Canvas {
5366
5366
void drawPath (Path path, Paint paint);
5367
5367
5368
5368
/// Draws the given [Image] into the canvas with its top-left corner at the
5369
- /// given [Offset] .
5370
- ///
5371
- /// The image is composited into the canvas using the given [Paint] , by
5372
- /// applying the [Paint.color] (alpha channel only), [Paint.blendMode] ,
5373
- /// [Paint.colorFilter] , [Paint.maskFilter] , and [Paint.imageFilter]
5374
- /// properties of the `paint` argument (in that order).
5369
+ /// given [Offset] . The image is composited into the canvas using the given [Paint] .
5375
5370
void drawImage (Image image, Offset offset, Paint paint);
5376
5371
5377
5372
/// Draws the subset of the given image described by the `src` argument into
5378
5373
/// the canvas in the axis-aligned rectangle given by the `dst` argument.
5379
5374
///
5380
- /// The image is composited into the canvas using the given [Paint] , by
5381
- /// applying the [Paint.color] (alpha channel only), [Paint.blendMode] ,
5382
- /// [Paint.colorFilter] , [Paint.maskFilter] , and [Paint.imageFilter]
5383
- /// properties of the `paint` argument (in that order).
5384
- ///
5385
5375
/// This might sample from outside the `src` rect by up to half the width of
5386
5376
/// an applied filter.
5387
5377
///
@@ -5390,7 +5380,7 @@ abstract class Canvas {
5390
5380
/// performance.
5391
5381
void drawImageRect (Image image, Rect src, Rect dst, Paint paint);
5392
5382
5393
- /// Draws the given [Image] into the canvas as a nine-patch image .
5383
+ /// Draws the given [Image] into the canvas using the given [Paint] .
5394
5384
///
5395
5385
/// The image is drawn in nine portions described by splitting the image by
5396
5386
/// drawing two horizontal lines and two vertical lines, where the `center`
@@ -5403,15 +5393,6 @@ abstract class Canvas {
5403
5393
/// five regions are drawn by stretching them to fit such that they exactly
5404
5394
/// cover the destination rectangle while maintaining their relative
5405
5395
/// positions.
5406
- ///
5407
- /// The image is composited into the canvas using the given [Paint] , by
5408
- /// applying the [Paint.color] (alpha channel only), [Paint.blendMode] ,
5409
- /// [Paint.colorFilter] , [Paint.maskFilter] , and [Paint.imageFilter]
5410
- /// properties of the `paint` argument (in that order).
5411
- ///
5412
- /// See also:
5413
- ///
5414
- /// * <https://en.wikipedia.org/wiki/9-slice_scaling>
5415
5396
void drawImageNine (Image image, Rect center, Rect dst, Paint paint);
5416
5397
5417
5398
/// Draw the given picture onto the canvas. To create a picture, see
@@ -5518,18 +5499,15 @@ abstract class Canvas {
5518
5499
/// [blendMode] argument (if a color is specified). In this part of the operation,
5519
5500
/// the image part will be considered the source of the operation and the associated
5520
5501
/// color will be considered the destination.
5521
- ///
5522
- /// - Blend the result from the first step onto the canvas using the
5523
- /// translation, rotation, and scale properties expressed in the associated
5524
- /// entry in the [transforms] list, and the [Paint.color] (alpha channel
5525
- /// only), [Paint.blendMode] , [Paint.colorFilter] , [Paint.maskFilter] , and
5526
- /// [Paint.imageFilter] properties of the `paint` argument (in that order).
5527
- ///
5528
- /// If the first stage of the operation which blends each part of the image
5529
- /// with a color is needed, then both the [colors] and [blendMode] arguments
5530
- /// must not be null and there must be an entry in the [colors] list for each
5531
- /// image part. If the [colors] argument is null or empty, or if the
5532
- /// [blendMode] argument is null, then this stage is skipped.
5502
+ /// - Blend the result from the first step onto the canvas using the translation,
5503
+ /// rotation, and scale properties expressed in the associated entry in the
5504
+ /// [transforms] list using the properties of the [Paint] object.
5505
+ ///
5506
+ /// If the first stage of the operation which blends each part of the image with
5507
+ /// a color is needed, then both the [colors] and [blendMode] arguments must
5508
+ /// not be null and there must be an entry in the [colors] list for each
5509
+ /// image part. If that stage is not needed, then the [colors] argument can
5510
+ /// be either null or an empty list and the [blendMode] argument may also be null.
5533
5511
///
5534
5512
/// The optional [cullRect] argument can provide an estimate of the bounds of the
5535
5513
/// coordinates rendered by all components of the atlas to be compared against
0 commit comments