30 surf->getCanvas()->drawLine(3.5f, 0, 3.5f, 8,
paint);
31 return surf->makeImageSnapshot();
38 canvas->drawImage(img, 0, 0,
s,
nullptr);
39 canvas->translate(0, img->height() + 1.0f);
49 for (
auto c : cubics) {
52 canvas->drawRect(r,
paint);
53 canvas->translate(0, img->height() + 1.0f);
constexpr SkColor SK_ColorBLACK
constexpr SkColor SK_ColorWHITE
DEF_SIMPLE_GM(bicubic, canvas, 300, 320)
static sk_sp< SkImage > make_img(int w, int h)
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
SkSamplingOptions(SkFilterMode::kLinear))
static constexpr SkCubicResampler CatmullRom()
static constexpr SkCubicResampler Mitchell()
static SkImageInfo MakeN32Premul(int width, int height)
static SkRect MakeIWH(int w, int h)
const SkSamplingOptions gSamplings[]