$ 0 0 You can do this with the ColorAlpha method of MagickImage. This method wraps the code from the command line into a single method.