Flutter Engine
The Flutter Engine
Functions
Image_makeShader.cpp File Reference
#include "tools/fiddle/examples.h"

Go to the source code of this file.

Functions

 REG_FIDDLE (Image_makeShader, 256, 256, false, 4)
 

Function Documentation

◆ REG_FIDDLE()

REG_FIDDLE ( Image_makeShader  ,
256  ,
256  ,
false  ,
 
)

Definition at line 4 of file Image_makeShader.cpp.

4 {
5void draw(SkCanvas* canvas) {
7 matrix.setRotate(45);
11 canvas->drawPaint(paint);
12}
13} // END FIDDLE
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
Definition: aaclip.cpp:27
void drawPaint(const SkPaint &paint)
Definition: SkCanvas.cpp:1668
sk_sp< SkShader > makeShader(SkTileMode tmx, SkTileMode tmy, const SkSamplingOptions &, const SkMatrix *localMatrix=nullptr) const
Definition: SkImage.cpp:179
const Paint & paint
Definition: color_source.cc:38
unsigned useCenter Optional< SkMatrix > matrix
Definition: SkRecords.h:258
sk_sp< const SkImage > image
Definition: SkRecords.h:269