MCPcopy Create free account
hub / github.com/HumbleUI/Skija / makeDropShadow

Method makeDropShadow

shared/java/ImageFilter.java:279–288  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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) {

Callers 4

drawMethod · 0.95
drawShadowsBlursMethod · 0.95
drawImageFiltersMethod · 0.95
drawImageWithFiltersMethod · 0.95

Calls 9

onNativeCallMethod · 0.95
_nMakeDropShadowCSMethod · 0.95
getPtrMethod · 0.95
reachabilityFenceMethod · 0.95
_nMakeDropShadowMethod · 0.95
getRMethod · 0.45
getGMethod · 0.45
getBMethod · 0.45
getAMethod · 0.45

Tested by

no test coverage detected