Interface MapCanvas

    • Method Detail

      • color

        MapColor color​(int x,
                       int y)
                throws java.lang.IllegalArgumentException
        Gets the MapColor at the given location.
        Parameters:
        x - The x location
        y - The y location
        Returns:
        The MapColor at the location
        Throws:
        java.lang.IllegalArgumentException - if either of the requested co-ordinates are out of bounds.
      • toImage

        java.awt.Image toImage()
        Generates an Image from this MapCanvas.
        Returns:
        An Image
      • toImage

        java.awt.Image toImage​(java.awt.Color color)
        Generates an Image from this MapCanvas, where any pixels that represent MapColorTypes.NONE will be replaced with the supplied Color.
        Parameters:
        color - the Color used in place of MapColorTypes.NONE
        Returns:
        An Image