MCPcopy Create free account
hub / github.com/JetBrains/skija / setStrokeWidth

Method setStrokeWidth

shared/java/Paint.java:336–341  ·  view source on GitHub ↗

Sets the thickness of the pen used by the paint to outline the shape. A stroke-width of zero is treated as "hairline" width. Hairlines are always exactly one pixel wide in device space (their thickness does not change as the canvas is scaled). Negative stroke-widths are invalid; setting a negative w

(float width)

Source from the content-addressed store, hash-verified

334 * @see <a href="https://fiddle.skia.org/c/@Paint_setStrokeWidth">https://fiddle.skia.org/c/@Paint_setStrokeWidth</a>
335 */
336 @NotNull @Contract("_ -> this")
337 public Paint setStrokeWidth(float width) {
338 Stats.onNativeCall();
339 _nSetStrokeWidth(_ptr, width);
340 return this;
341 }
342
343 /**
344 * Returns the limit at which a sharp corner is drawn beveled.

Callers 15

drawMethod · 0.80
SVGScalingSceneClass · 0.80
FontSceneMethod · 0.80
WallOfTextSceneClass · 0.80
DrawableSceneClass · 0.80
drawTabbarMethod · 0.80
drawToolbarMethod · 0.80
drawLeftMethod · 0.80
drawAlignMethod · 0.80
drawPropsMethod · 0.80
drawInstanceMethod · 0.80

Calls 2

onNativeCallMethod · 0.95
_nSetStrokeWidthMethod · 0.95

Tested by 1

drawMethod · 0.64