DrawMatte
DrawMatte -- paints on the image's opacity channel in order to set affected pixels to transparent
Description
void DrawMatte( DrawingWand drw_wnd, float x, float y, int paint_method )
Paints on the image's opacity channel in order to set affected pixels to
transparent, starting at the position specified by (x, y), and using the
specified paint method, paint_method.
paint_method must be one of the available paint methods, (i.e.: A
PaintMethod constant), one of the following:
MW_PointMethod: Select the target pixel.
MW_ReplaceMethod: Select any pixel that matches the target pixel.
MW_FloodfillMethod: Select the target pixel and matching neighbors.
MW_FillToBorderMethod: Select the target pixel and neighbors not
matching border color.
MW_ResetMethod: Select all pixels.
A description of each parameter follows:
| drw_wnd | A DrawingWand resource |
| x | The x ordinate of the start position |
| y | The y ordinate of the start position |
| paint_method | A PaintMethod constant |