Skia
2DGraphicsLibrary
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SkAlphaThresholdFilter Class Reference

Public Member Functions

 SK_DECLARE_FLATTENABLE_REGISTRAR_GROUP ()
 

Static Public Member Functions

static sk_sp< SkImageFilterMake (const SkRegion &region, SkScalar innerMin, SkScalar outerMax, sk_sp< SkImageFilter > input, const SkImageFilter::CropRect *cropRect=nullptr)
 Creates an image filter that samples a region. More...
 

Member Function Documentation

static sk_sp<SkImageFilter> SkAlphaThresholdFilter::Make ( const SkRegion region,
SkScalar  innerMin,
SkScalar  outerMax,
sk_sp< SkImageFilter input,
const SkImageFilter::CropRect cropRect = nullptr 
)
static

Creates an image filter that samples a region.

If the sample is inside the region the alpha of the image is boosted up to a threshold value. If it is outside the region then the alpha is decreased to the threshold value. The 0,0 point of the region corresponds to the upper left corner of the source image.


The documentation for this class was generated from the following file: