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