|
static SkScalar | ConvertRadiusToSigma (SkScalar radius) |
| If radius > 0, return the corresponding sigma, else return 0. More...
|
|
static sk_sp< SkMaskFilter > | Make (SkBlurStyle style, SkScalar sigma, const SkRect &occluder, uint32_t flags=kNone_BlurFlag) |
| Create a blur maskfilter. More...
|
|
static sk_sp< SkMaskFilter > | Make (SkBlurStyle style, SkScalar sigma, uint32_t flags=kNone_BlurFlag) |
|
static bool | ComputeBlurredRRectParams (const SkRRect &srcRRect, const SkRRect &devRRect, const SkRect &occluder, SkScalar sigma, SkScalar xformedSigma, SkRRect *rrectToDraw, SkISize *widthHeight, SkScalar rectXs[kMaxDivisions], SkScalar rectYs[kMaxDivisions], SkScalar texXs[kMaxDivisions], SkScalar texYs[kMaxDivisions], int *numXs, int *numYs, uint32_t *skipMask) |
|
|
static const int | kMaxDivisions = 6 |
|
Enumerator |
---|
kIgnoreTransform_BlurFlag |
The blur layer's radius is not affected by transforms.
|
kHighQuality_BlurFlag |
Use a smother, higher qulity blur algorithm.
|
kAll_BlurFlag |
mask for all blur flags
|
static SkScalar SkBlurMaskFilter::ConvertRadiusToSigma |
( |
SkScalar |
radius | ) |
|
|
static |
If radius > 0, return the corresponding sigma, else return 0.
Use this to convert from the (legacy) idea of specify the blur "radius" to the standard notion of specifying its sigma.
static sk_sp<SkMaskFilter> SkBlurMaskFilter::Make |
( |
SkBlurStyle |
style, |
|
|
SkScalar |
sigma, |
|
|
const SkRect & |
occluder, |
|
|
uint32_t |
flags = kNone_BlurFlag |
|
) |
| |
|
static |
Create a blur maskfilter.
- Parameters
-
style | The SkBlurStyle to use |
sigma | Standard deviation of the Gaussian blur to apply. Must be > 0. |
occluder | The rect for which no pixels need be drawn (b.c. it will be overdrawn with some opaque object. This is just a hint which backends are free to ignore. |
flags | Flags to use - defaults to none |
- Returns
- The new blur maskfilter
The documentation for this class was generated from the following file: