Sets SkBlendMode to mode. Does not check for valid input. @param mode BlendMode used to combine source color and destination @return this
(@NotNull BlendMode mode)
| 589 | * @return this |
| 590 | */ |
| 591 | @NotNull @Contract("!null -> this; null -> fail") |
| 592 | public Paint setBlendMode(@NotNull BlendMode mode) { |
| 593 | assert mode != null : "Paint::setBlendMode expected mode != null"; |
| 594 | Stats.onNativeCall(); |
| 595 | _nSetBlendMode(_ptr, mode.ordinal()); |
| 596 | return this; |
| 597 | } |
| 598 | |
| 599 | /** |
| 600 | * @return {@link PathEffect} or null |