Replaces alpha, leaving RGB unchanged. An out of range value triggers an assert in the debug build. a is a value from 0 to 255. a set to zero makes color fully transparent; a set to 255 makes color fully opaque. @param a alpha component of color @return this
(int a)
| 286 | * @return this |
| 287 | */ |
| 288 | @NotNull @Contract("_ -> this") |
| 289 | public Paint setAlpha(int a) { |
| 290 | return setAlphaf(a / 255f); |
| 291 | } |
| 292 | |
| 293 | /** |
| 294 | * Sets color used when drawing solid fills. The color components range from 0 to 255. |