Package org.eclipse.swt.graphics
Interface ImageDataAtSizeProvider
- All Superinterfaces:
ImageDataProvider
Provides an API that is invoked by SWT when an image needs to be drawn at a
specified width and height.
Client code must implement this interface to supply ImageData on demand.
- Since:
- 3.132
- Restriction:
- This class is still experimental API and might be subject to change.
-
Method Summary
Modifier and TypeMethodDescriptiongetImageData(int width, int height) Returns theImageDatafor the given width and height.Methods inherited from interface org.eclipse.swt.graphics.ImageDataProvider
getImageData
-
Method Details
-
getImageData
Returns theImageDatafor the given width and height.Implementation notes:
- Returning
nullis not permitted. Ifnullis returned, SWT will throw an exception when loading the image. - The returned
ImageDatamust match the requested width and height exactly. Implementations should ensure proper resizing and scaling of the image based on the height and width requested
- Returning
-