Package org.eclipse.swt.internal
Class DPIUtil.AutoScaleImageDataProvider
- java.lang.Object
-
- org.eclipse.swt.internal.DPIUtil.AutoScaleImageDataProvider
-
- All Implemented Interfaces:
ImageDataProvider
- Enclosing class:
- DPIUtil
public static final class DPIUtil.AutoScaleImageDataProvider extends java.lang.Object implements ImageDataProvider
AutoScale ImageDataProvider.
-
-
Constructor Summary
Constructors Constructor Description AutoScaleImageDataProvider(Device device, ImageData data, int zoom)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageDatagetImageData(int zoom)Returns the image data for the given zoom level.
-
-
-
Method Detail
-
getImageData
public ImageData getImageData(int zoom)
Description copied from interface:ImageDataProviderReturns the image data for the given zoom level.If no image is available for a particular zoom level, this method should return
null. Forzoom == 100, returningnullis not allowed, and SWT will throw an exception.- Specified by:
getImageDatain interfaceImageDataProvider- Parameters:
zoom- The zoom level in % of the standard resolution (which is 1 physical monitor pixel == 1 SWT logical point). Typically 100, 150, or 200.- Returns:
- the image data, or
nullifzoom != 100and no image is available for the given zoom level.
-
-