Flutter Engine
The Flutter Engine
Classes | Functions
emboss.cpp File Reference
#include "gm/gm.h"
#include "include/core/SkBitmap.h"
#include "include/core/SkBlendMode.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include "include/core/SkColorFilter.h"
#include "include/core/SkFont.h"
#include "include/core/SkMaskFilter.h"
#include "include/core/SkPaint.h"
#include "include/core/SkScalar.h"
#include "include/core/SkShader.h"
#include "include/core/SkSize.h"
#include "include/core/SkString.h"
#include "include/core/SkSurface.h"
#include "include/core/SkTypeface.h"
#include "src/core/SkBlurMask.h"
#include "src/effects/SkEmbossMaskFilter.h"
#include "tools/fonts/FontToolUtils.h"

Go to the source code of this file.

Classes

class  EmbossGM
 

Functions

static sk_sp< SkImagemake_bm ()
 

Function Documentation

◆ make_bm()

static sk_sp< SkImage > make_bm ( )
static

Definition at line 27 of file emboss.cpp.

27 {
29
31 paint.setAntiAlias(true);
32 surf->getCanvas()->drawCircle(50, 50, 50, paint);
33 return surf->makeImageSnapshot();
34}
const Paint & paint
Definition: color_source.cc:38
SK_API sk_sp< SkSurface > Raster(const SkImageInfo &imageInfo, size_t rowBytes, const SkSurfaceProps *surfaceProps)
static SkImageInfo MakeN32Premul(int width, int height)