A tint is produced by "lightening" a hue or "adding white", to tint: R' = R + (255 - R) tint_factor G' = G + (255 - G) tint_factor B' = B + (255 - B) tint_factor @param bitmap @param color @param amount
(Bitmap bitmap, int color, float amount)
| 170 | * @param amount |
| 171 | */ |
| 172 | public static Bitmap tint(Bitmap bitmap, int color, float amount) |
| 173 | { |
| 174 | return tone(bitmap, Color.WHITE, amount); |
| 175 | } |
| 176 | |
| 177 | /* |
| 178 | int width = 640, height = 640; |