public static final class DPIUtil.AutoScaleImageDataProvider extends Object implements ImageDataProvider
| Constructor and Description |
|---|
AutoScaleImageDataProvider(Device device,
ImageData data,
int zoom) |
| Modifier and Type | Method and Description |
|---|---|
ImageData |
getImageData(int zoom)
Returns the image data for the given zoom level.
|
public ImageData getImageData(int zoom)
ImageDataProvider
If no image is available for a particular zoom level, this method should
return null. For zoom == 100, returning
null in not allowed, and SWT will throw an exception.
getImageData in interface ImageDataProviderzoom - The zoom level in % of the standard resolution (which is 1
physical monitor pixel == 1 SWT logical pixel). Typically 100,
150, or 200.null if zoom != 100
and no image is available for the given zoom level.Copyright © 2017. All Rights Reserved.