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