Interface Mask

    • Method Detail

      • toAWTShape

        default java.awt.Shape toAWTShape()
        Converts the shape to an Shape.
        Specified by:
        toAWTShape in interface Shape
        Returns:
        The converted AWT Shape.
      • getMaskAsBinaryArray

        int[][] getMaskAsBinaryArray()
        Returns the mask image.
        Returns:
        See above.
      • getMask

        byte[] getMask()
        Returns the mask as a byte array.
        Returns:
        See above.
      • setMask

        void setMask​(byte[] mask)
        Sets the mask image.
        Parameters:
        mask - See above.
      • setMask

        void setMask​(int[][] mask)
        Sets the mask
        Parameters:
        mask - The binary mask (int[width][height])
      • setMask

        void setMask​(boolean[][] mask)
        Sets the mask
        Parameters:
        mask - The binary mask (boolean[width][height])