diff --git a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageDataProvider.java b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageDataProvider.java index bfa0ec70a73..826973891c6 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageDataProvider.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/common/org/eclipse/swt/graphics/ImageDataProvider.java @@ -28,16 +28,31 @@ public interface ImageDataProvider { /** * Returns the image data for the given zoom level. - *
- * If no image is available for a particular zoom level, this method should
- * return null. For zoom == 100, returning
- * null is not allowed, and SWT will throw an exception.
+ *
+ *
null. For zoom == 100, returning
+ * null is not allowed, and SWT will throw an exception.
+ * getImageData(100) returns an image of
+ * width w and height h, then
+ * getImageData(200) must return an {@link ImageData}
+ * of width 2 * w and height 2 * h,
+ * if a non-{@code null} result is returned.
+ * null if zoom != 100
+ * @return the linearly scaled image data for the given zoom level,
+ * or null if zoom != 100
* and no image is available for the given zoom level.
* @since 3.104
*/