Package org.eclipse.swt.internal
Class Win32DPIUtils.AutoScaleImageDataProvider
java.lang.Object
org.eclipse.swt.internal.Win32DPIUtils.AutoScaleImageDataProvider
- All Implemented Interfaces:
- ImageDataProvider
- Enclosing class:
- Win32DPIUtils
public static final class Win32DPIUtils.AutoScaleImageDataProvider
extends Object
implements ImageDataProvider
AutoScale ImageDataProvider.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetImageData(int zoom) Returns the image data for the given zoom level.
- 
Constructor Details- 
AutoScaleImageDataProvider
 
- 
- 
Method Details- 
getImageDataDescription 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.
- 
     Implementations are expected to return ImageDatathat is linearly scaled with respect to the zoom level. For example, ifgetImageData(100)returns an image of widthwand heighth, thengetImageData(200)must return anImageDataof width2 * wand height2 * h, if a non-nullresult is returned.
 - Specified by:
- getImageDatain interface- ImageDataProvider
- 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 linearly scaled image data for the given zoom level,
         or nullifzoom != 100and no image is available for the given zoom level.
 
- 
     If no image is available for a particular zoom level, this method should
     return 
 
-