Lines Matching refs:image
13 static void draw_rotated_image(SkCanvas* canvas, const SkImage* image) {
16 if (!image) {
22 SkScalar scale = SkTMin(128.0f / image->width(),
23 128.0f / image->height());
24 SkScalar point[2] = {-0.5f * image->width(), -0.5f * image->height()};
32 canvas->drawImage(image, point[0], point[1]);
38 SkAutoTUnref<SkImage> image(GetResourceAsImage("randPixels.png"));
39 draw_rotated_image(canvas, image);
43 SkAutoTUnref<SkImage> image(GetResourceAsImage("color_wheel.jpg"));
44 draw_rotated_image(canvas, image);