Lines Matching defs:img
265 auto img = GetResourceAsImage("images/mandrill_128.png");
269 SkRect r = { -20, -20, img->width() + 20.0f, img->height() + 20.0f };
273 [img](SkPaint* paint, SkTileMode tx, SkTileMode ty) {
275 paint->setShader(img->makeShader(tx, ty, SkSamplingOptions(SkFilterMode::kNearest)));
277 [img](SkPaint* paint, SkTileMode tx, SkTileMode ty) {
279 paint->setShader(img->makeShader(tx, ty, SkSamplingOptions(SkFilterMode::kLinear)));
281 [img](SkPaint* paint, SkTileMode tx, SkTileMode ty) {
283 paint->setShader(img->makeShader(tx, ty, SkSamplingOptions(SkCubicResampler::Mitchell())));
285 [img](SkPaint* paint, SkTileMode tx, SkTileMode ty) {
287 const SkPoint pts[] = {{ 0, 0 }, {img->width()*1.0f, img->height()*1.0f }};
292 [img](SkPaint* paint, SkTileMode tx, SkTileMode ty) {
296 paint->setShader(SkGradientShader::MakeRadial({ img->width()*0.5f, img->width()*0.5f },
297 img->width()*0.5f, colors, pos, count, tx));