< prev index next >

src/java.desktop/share/classes/java/awt/image/MultiResolutionImage.java

Print this page




  59     /**
  60      * Gets a specific image that is the best variant to represent
  61      * this logical image at the indicated size.
  62      *
  63      * @param destImageWidth the width of the destination image, in pixels.
  64      * @param destImageHeight the height of the destination image, in pixels.
  65      * @return image resolution variant.
  66      * @throws IllegalArgumentException if {@code destImageWidth} or
  67      *         {@code destImageHeight} is less than or equal to zero, infinity,
  68      *         or NaN.
  69      *
  70      * @since 1.9
  71      */
  72     Image getResolutionVariant(double destImageWidth, double destImageHeight);
  73 
  74     /**
  75      * Gets a readable list of all resolution variants.
  76      * The list must be nonempty and contain at least one resolution variant.
  77      * <p>
  78      * Note that many implementations might return an unmodifiable list.
  79      * <p>
  80      * @return list of resolution variants.
  81      * @since 1.9
  82      */
  83     public List<Image> getResolutionVariants();
  84 }


  59     /**
  60      * Gets a specific image that is the best variant to represent
  61      * this logical image at the indicated size.
  62      *
  63      * @param destImageWidth the width of the destination image, in pixels.
  64      * @param destImageHeight the height of the destination image, in pixels.
  65      * @return image resolution variant.
  66      * @throws IllegalArgumentException if {@code destImageWidth} or
  67      *         {@code destImageHeight} is less than or equal to zero, infinity,
  68      *         or NaN.
  69      *
  70      * @since 1.9
  71      */
  72     Image getResolutionVariant(double destImageWidth, double destImageHeight);
  73 
  74     /**
  75      * Gets a readable list of all resolution variants.
  76      * The list must be nonempty and contain at least one resolution variant.
  77      * <p>
  78      * Note that many implementations might return an unmodifiable list.
  79      *
  80      * @return list of resolution variants.
  81      * @since 1.9
  82      */
  83     public List<Image> getResolutionVariants();
  84 }
< prev index next >