Class WPainter.Image

    • Constructor Summary

      Constructors 
      Constructor Description
      Image​(WAbstractDataInfo info)
      Creates an image.
      Image​(WAbstractDataInfo info, int width, int height)
      Creates an image.
      Image​(java.lang.String url, int width, int height)
      Creates an image.
      Image​(java.lang.String url, java.lang.String fileName)
      Creates an image.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getHeight()
      Returns the image height.
      WAbstractDataInfo getInfo()
      Returns the data info of the image.
      java.lang.String getUri()
      Returns the url.
      int getWidth()
      Returns the image width.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Image

        public Image​(java.lang.String url,
                     int width,
                     int height)
        Creates an image.

        Create an image which is located at the uri, and which has dimensions width x height.

      • Image

        public Image​(WAbstractDataInfo info,
                     int width,
                     int height)
        Creates an image.

        Create an image which URI and/or file path is given by info, and which has dimensions width x height.

        Note: The information required depends on the WPaintDevice used.

      • Image

        public Image​(java.lang.String url,
                     java.lang.String fileName)
        Creates an image.

        Create an image which is located at uri which is available on the local filesystem as file. The image dimensions are retrieved from the file.

      • Image

        public Image​(WAbstractDataInfo info)
        Creates an image.

        Create an image which URI and/or file path is given by info. The image dimensions are retrieved from the file (or the URI if it is a data URI).

        Note: The information required depends on the WPaintDevice used.

    • Method Detail

      • getUri

        public java.lang.String getUri()
        Returns the url.
      • getWidth

        public int getWidth()
        Returns the image width.
      • getHeight

        public int getHeight()
        Returns the image height.