| Index: include/effects/SkAlphaThresholdFilter.h
|
| diff --git a/include/effects/SkAlphaThresholdFilter.h b/include/effects/SkAlphaThresholdFilter.h
|
| index 23af56fc549aea172698b58096ebb4a35f3cb590..a7141957f7a31a49df571477c1d9d2049b22270e 100644
|
| --- a/include/effects/SkAlphaThresholdFilter.h
|
| +++ b/include/effects/SkAlphaThresholdFilter.h
|
| @@ -21,6 +21,17 @@ public:
|
| * source image.
|
| */
|
| static SkImageFilter* Create(const SkRegion& region, SkScalar innerThreshold, SkScalar outerThreshold);
|
| +
|
| + /**
|
| + * 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 |scale| factor is applied to the region before the filter is applied.
|
| + */
|
| + static SkImageFilter* Create(const SkRegion& region, const SkMatrix& scale,
|
| + SkScalar innerThreshold, SkScalar outerThreshold);
|
| };
|
|
|
| #endif
|
|
|