![]() |
VOOZH | about |
The alpha() function is identical to the wand color() function. Similar to color() function, alpha() function draws a color on the image using current fill color, starting at specified position & method. Uses same arguments as color() method.
Syntax: wand.drawing.alpha(x, y, method) Parameters :
Parameter Input Type Description x numbers.Integer start of filling color y numbers.Integer end of filling color method basestring method from PAINT_METHOD_TYPES
The following are the PAINT_METHOD_TYPES:
Note: This method replaces matte() in ImageMagick version 7. An AttributeError will be raised if attempting to call on a library without DrawAlpha support. Example #1:
Output: A pixel is visible at center of transparent image here is the zoomed image. 👁 Image
Example #2: Filling color using a flood-fill algorithm.
Output: 👁 Image