Create a filter that draws a drop shadow under the input content. This filter produces an image that includes the inputs' content. @param dx X offset of the shadow @param dy Y offset of the shadow @param sigmaX Blur radius for the shadow, along the X axis @param sigmaY B
(float dx, float dy, float sigmaX, float sigmaY, @NotNull Color4f color, @Nullable ColorSpace colorSpace, @Nullable ImageFilter input, @Nullable Rect crop)
| 277 | * @return filter that draws a drop shadow |
| 278 | */ |
| 279 | @NotNull @Contract("_, _, _, _, _, _, _, _ -> new") |
| 280 | public static ImageFilter makeDropShadow(float dx, float dy, float sigmaX, float sigmaY, @NotNull Color4f color, @Nullable ColorSpace colorSpace, @Nullable ImageFilter input, @Nullable Rect crop) { |
| 281 | try { |
| 282 | Stats.onNativeCall(); |
| 283 | return new ImageFilter(_nMakeDropShadowCS(dx, dy, sigmaX, sigmaY, color.getR(), color.getG(), color.getB(), color.getA(), Native.getPtr(colorSpace), Native.getPtr(input), crop)); |
| 284 | } finally { |
| 285 | ReferenceUtil.reachabilityFence(colorSpace); |
| 286 | ReferenceUtil.reachabilityFence(input); |
| 287 | } |
| 288 | } |
| 289 | |
| 290 | @NotNull @Contract("_, _, _, _, _, _, _, _ -> new") |
| 291 | public static ImageFilter makeDropShadow(float dx, float dy, float sigmaX, float sigmaY, @NotNull Color4f color, @Nullable ColorSpace colorSpace, @Nullable ImageFilter input, @Nullable IRect crop) { |
no test coverage detected