Method Image.Image()->paste_alpha_color()
- Method paste_alpha_color
paste_alpha_color(objectobjectmask)
paste_alpha_color(objectobjectmask,intx,inty)
paste_alpha_color(objectobjectmask,intr,intg,intb)
paste_alpha_color(objectobjectmask,intr,intg,intb,intx,inty)
paste_alpha_color(objectobjectmask,Colorcolor)
paste_alpha_color(objectobjectmask,Colorcolor,intx,inty)- 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