Class CreateOp

    • Constructor Detail

      • CreateOp

        public CreateOp​(int width,
                        int height,
                        EditableImage.DataType dataType)
        Create a black monochromatic image (i.e. made of a single band) with the specified data type.
        Parameters:
        width - the image width
        height - the image height
        dataType - the data type
      • CreateOp

        public CreateOp​(int width,
                        int height,
                        EditableImage.DataType dataType,
                        java.awt.Color color)
        Create an RGB image with the specified data type.
        Parameters:
        width - the image width
        height - the image height
        dataType - the data type
        color - the filler color
      • CreateOp

        public CreateOp​(int width,
                        int height,
                        EditableImage.DataType dataType,
                        double... filler)
        Create a multi-band image with the specified data type. Ploase note that while the filler param is double, its valid range depends on the dataType. For instance, while for FLOAT and DOUBLE types the range is 0.0..1.0, for BYTE is 0..255, for UNSIGNED_SHORT is 0..65535 and so on.
        Parameters:
        width - the image width
        height - the image height
        dataType - the data type
        filler - the filler values
    • Method Detail

      • getWidth

        public int getWidth()
      • getHeight

        public int getHeight()
      • getFiller

        public double[] getFiller()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object