Class IMOperation

  • Direct Known Subclasses:
    ChannelMixer, NoiseFilter

    public class IMOperation
    extends IMOps
    This class models the command-line of ImageMagick. It extends the class IMOps and adds some utility-methods (like appendVertically()) not found in ImageMagick, mainly for ease of use. Subclasses of IMOperation implement more specific operations (e.g. ChannelMixer).

    If you want to switch between GraphicsMagick and ImageMagick at runtime (using the system-property im4java.useGM=true), you have to limit yourself to the subset of options common to both implementations.

    • Constructor Detail

      • IMOperation

        public IMOperation()
        Constructor.
    • Method Detail

      • openOperation

        public IMOperation openOperation()
        Open a sub-operation (add a opening parenthesis).
      • closeOperation

        public IMOperation closeOperation()
        Close a sub-operation (add a closing parenthesis).
      • addSubOperation

        public IMOperation addSubOperation​(Operation pSubOperation)
        Add a IMOperation as a suboperation.
      • appendHorizontally

        public IMOperation appendHorizontally()
        Append images horizontally (same as +append)
      • appendVertically

        public IMOperation appendVertically()
        Append images vertically (same as -append)