Class ResizeOperation

  • All Implemented Interfaces:
    Operation

    public class ResizeOperation
    extends java.lang.Object
    implements Operation
    Scale an image to an exact width and height using one of several interpolation modes. Scaling images down can be a useful optimization, and scaling them up might be necessary for combining multiple images that are different sizes.
    • Method Detail

      • getInputSockets

        public java.util.List<InputSocket> getInputSockets()
        Specified by:
        getInputSockets in interface Operation
        Returns:
        A list of sockets for the inputs that the operation expects.
      • getOutputSockets

        public java.util.List<OutputSocket> getOutputSockets()
        Specified by:
        getOutputSockets in interface Operation
        Returns:
        A list of sockets for the outputs that the operation produces.
      • perform

        public void perform()
        Description copied from interface: Operation
        Performs this Operation.
        Specified by:
        perform in interface Operation