diff --git a/docs/SkImage_Reference.bmh b/docs/SkImage_Reference.bmh index 27aa62503e..ddbc5a89a9 100644 --- a/docs/SkImage_Reference.bmh +++ b/docs/SkImage_Reference.bmh @@ -2001,6 +2001,7 @@ animation frames aligned with respect to each other. #Return filtered Image, or nullptr ## +# Duration 5 breaks fiddlecli #Example #Description In each frame of the animation, filtered Image is drawn in a different location. @@ -2008,7 +2009,7 @@ By translating canvas by returned offset, Image appears stationary. ## #Image 5 #Platform gpu -#Duration 5 +#Duration 1 sk_sp shadowFilter = SkDropShadowImageFilter::Make( -10.0f * frame, 5.0f * frame, 3.0f, 3.0f, SK_ColorBLUE, SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode, diff --git a/site/user/api/SkImage_Reference.md b/site/user/api/SkImage_Reference.md index ae99d91b50..aafd36cdc2 100644 --- a/site/user/api/SkImage_Reference.md +++ b/site/user/api/SkImage_Reference.md @@ -2573,7 +2573,7 @@ filtered Image, or nullptr ### Example -
In each frame of the animation, filtered Image is drawn in a different location. +
In each frame of the animation, filtered Image is drawn in a different location. By translating canvas by returned offset, Image appears stationary.
diff --git a/site/user/api/catalog.htm b/site/user/api/catalog.htm index e62a6a8179..fe718d5605 100644 --- a/site/user/api/catalog.htm +++ b/site/user/api/catalog.htm @@ -6340,7 +6340,7 @@ "code": "void draw(SkCanvas* canvas) {\n sk_sp shadowFilter = SkDropShadowImageFilter::Make(\n -10.0f * frame, 5.0f * frame, 3.0f, 3.0f, SK_ColorBLUE,\n SkDropShadowImageFilter::kDrawShadowAndForeground_ShadowMode,\n nullptr);\n sk_sp offsetFilter = SkOffsetImageFilter::Make(40, 40, shadowFilter, nullptr);\n SkIRect subset = image->bounds();\n SkIRect clipBounds = image->bounds();\n clipBounds.outset(60, 60);\n SkIRect outSubset;\n SkIPoint offset;\n sk_sp filtered(image->makeWithFilter(offsetFilter.get(), subset, clipBounds,\n &outSubset, &offset));\n SkPaint paint;\n paint.setAntiAlias(true);\n paint.setStyle(SkPaint::kStroke_Style);\n canvas->drawLine(0, 0, offset.fX, offset.fY, paint);\n canvas->translate(offset.fX, offset.fY);\n canvas->drawImage(filtered, 0, 0);\n canvas->drawRect(SkRect::Make(outSubset), paint);\n}", "width": 256, "height": 256, - "hash": "17547129251dd9607c381a3cc30cff15", + "hash": "85a76163138a2720ac003691d6363938", "file": "SkImage_Reference", "name": "SkImage::makeWithFilter" },