[Top]
Image
Image.Image
|
Method Image.Image()->paste_alpha_color()
- Method
paste_alpha_color
-
object paste_alpha_color(object mask)
object paste_alpha_color(object mask, int x, int y)
object paste_alpha_color(object mask, int r, int g, int b)
object paste_alpha_color(object mask, int r, int g, int b, int x, int y)
object paste_alpha_color(object mask, Color color)
object paste_alpha_color(object mask, Color color, int x, int y)
- Description
-
-
Pastes a given color over the current image,
using the given mask as opaque channel.
A pixel value of 255 makes the result become the color given,
0 doesn't change anything.
The masks red, green and blue values are used separately.
If no color are given, the current is used.
- Parameter mask
-
-
mask image
- Parameter r
-
- Parameter g
-
- Parameter b
-
-
what color to paint with; default is current
- Parameter x
-
- Parameter y
-
-
where to paste the image; default is 0,0
- Returns
-
-
the object called
- See also
-
-
paste_mask , paste_alpha , paste_alpha_color
|