public class ContextBasedScaleProviderFactory extends ScaleProviderFactory
ContextBasedScaleProvider instances.| Constructor and Description |
|---|
ContextBasedScaleProviderFactory(RectangleSize topLevelContextEntireSize,
RectangleSize viewportSize,
ScaleMethod scaleMethod,
double devicePixelRatio,
PropertyHandler<ScaleProvider> scaleProviderHandler) |
| Modifier and Type | Method and Description |
|---|---|
protected ScaleProvider |
getScaleProviderImpl(int imageToScaleWidth) |
getScaleProviderpublic ContextBasedScaleProviderFactory(RectangleSize topLevelContextEntireSize, RectangleSize viewportSize, ScaleMethod scaleMethod, double devicePixelRatio, PropertyHandler<ScaleProvider> scaleProviderHandler)
topLevelContextEntireSize - The total size of the top level
context. E.g., for selenium this
would be the document size of the top
level frame.viewportSize - The viewport size.scaleMethod - The method used for scaling.devicePixelRatio - The device pixel ratio of the
platform on which the application is
running.protected ScaleProvider getScaleProviderImpl(int imageToScaleWidth)
getScaleProviderImpl in class ScaleProviderFactoryCopyright © 2016. All rights reserved.