Lines Matching defs:image
129 /** Allocates raster SkCanvas specified by inline image specification. Subsequent SkCanvas
718 // Relative scale factor that the image content used to initialize the layer when the
1459 void drawImage(const SkImage* image, SkScalar left, SkScalar top) {
1460 this->drawImage(image, left, top, SkSamplingOptions(), nullptr);
1462 void drawImage(const sk_sp<SkImage>& image, SkScalar left, SkScalar top) {
1463 this->drawImage(image.get(), left, top, SkSamplingOptions(), nullptr);
1478 void drawImage(const sk_sp<SkImage>& image, SkScalar x, SkScalar y,
1480 this->drawImage(image.get(), x, y, sampling, paint);
1486 void drawImageRect(const sk_sp<SkImage>& image, const SkRect& src, const SkRect& dst,
1489 this->drawImageRect(image.get(), src, dst, sampling, paint, constraint);
1491 void drawImageRect(const sk_sp<SkImage>& image, const SkRect& dst,
1493 this->drawImageRect(image.get(), dst, sampling, paint);
1496 /** Draws SkImage image stretched proportionally to fit into SkRect dst.
1497 SkIRect center divides the image into nine sections: four sides, four corners, and
1504 SkBlendMode. If image is kAlpha_8_SkColorType, apply SkShader.
1505 If paint contains SkMaskFilter, generate mask from image bounds.
1508 If generated mask extends beyond image bounds, replicate image edge colors, just
1510 replicates the image edge color when it samples outside of its bounds.
1512 @param image SkImage containing pixels, dimensions, and format
1513 @param center SkIRect edge of image corners and sides
1514 @param dst destination SkRect of image to draw to
1515 @param filter what technique to use when sampling the image
1519 void drawImageNine(const SkImage* image, const SkIRect& center, const SkRect& dst,
1552 /** Draws SkImage image stretched proportionally to fit into SkRect dst.
1554 SkCanvas::Lattice lattice divides image into a rectangular grid.
1563 SkBlendMode. If image is kAlpha_8_SkColorType, apply SkShader.
1564 If paint contains SkMaskFilter, generate mask from image bounds.
1572 @param image SkImage containing pixels, dimensions, and format
1574 @param dst destination SkRect of image to draw to
1575 @param filter what technique to use when sampling the image
1579 void drawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst,
1581 void drawImageLattice(const SkImage* image, const Lattice& lattice, const SkRect& dst) {
1582 this->drawImageLattice(image, lattice, dst, SkFilterMode::kNearest, nullptr);
1586 * Experimental. Controls anti-aliasing of each edge of images in an image-set.
1600 ImageSetEntry(sk_sp<const SkImage> image, const SkRect& srcRect, const SkRect& dstRect,
1603 ImageSetEntry(sk_sp<const SkImage> image, const SkRect& srcRect, const SkRect& dstRect,
1650 * by sampling from 'fSrcRect' sub-image. The corners of 'fSrcRect' map to the corners of
1659 * destination clip coordinates will be read consecutively with the image set entries, advancing
1671 * image set is drawn as if each image used the applied paint independently, so each is affected
1672 * by the image, color, and/or mask filter.
2081 @param sampling SkSamplingOptions used when sampling from the atlas image
2220 * Draw SkImage image with Gaussian Blur algorithm by the separate X and Y sigma
2222 * outside the input image, by default SkTileMode::kDecal is used.
2224 * @param image SkImage containing pixels, dimensions, and format.
2227 bool drawBlurImage(const SkImage* image, const SkBlurArg& blurArg)
2229 if (image == nullptr) {
2232 return this->onDrawBlurImage(image, blurArg);
2339 virtual bool onDrawBlurImage(const SkImage* image, const SkBlurArg& blurArg);
2344 kNone_ShaderOverrideOpacity, //!< there is no overriding shader (bitmap or image)
2518 // it is not compatible, introduce an intermediate image and transformation that allows the
2527 * 'paint' is applied after the filter and must not have a mask or image filter of its own.
2530 * 'scaleFactor' is an extra uniform scale transform applied to downscale the 'src' image