@@ -5366,12 +5366,22 @@ 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] . The image is composited into the canvas using the given [Paint] .
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).
5370
5375
void drawImage (Image image, Offset offset, Paint paint);
5371
5376
5372
5377
/// Draws the subset of the given image described by the `src` argument into
5373
5378
/// the canvas in the axis-aligned rectangle given by the `dst` argument.
5374
5379
///
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
+ ///
5375
5385
/// This might sample from outside the `src` rect by up to half the width of
5376
5386
/// an applied filter.
5377
5387
///
@@ -5380,7 +5390,7 @@ abstract class Canvas {
5380
5390
/// performance.
5381
5391
void drawImageRect (Image image, Rect src, Rect dst, Paint paint);
5382
5392
5383
- /// Draws the given [Image] into the canvas using the given [Paint] .
5393
+ /// Draws the given [Image] into the canvas as a nine-patch image .
5384
5394
///
5385
5395
/// The image is drawn in nine portions described by splitting the image by
5386
5396
/// drawing two horizontal lines and two vertical lines, where the `center`
@@ -5393,6 +5403,15 @@ abstract class Canvas {
5393
5403
/// five regions are drawn by stretching them to fit such that they exactly
5394
5404
/// cover the destination rectangle while maintaining their relative
5395
5405
/// 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>
5396
5415
void drawImageNine (Image image, Rect center, Rect dst, Paint paint);
5397
5416
5398
5417
/// Draw the given picture onto the canvas. To create a picture, see
@@ -5499,15 +5518,18 @@ abstract class Canvas {
5499
5518
/// [blendMode] argument (if a color is specified). In this part of the operation,
5500
5519
/// the image part will be considered the source of the operation and the associated
5501
5520
/// color will be considered the destination.
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.
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.
5511
5533
///
5512
5534
/// The optional [cullRect] argument can provide an estimate of the bounds of the
5513
5535
/// coordinates rendered by all components of the atlas to be compared against
0 commit comments