Class FixedScaleProviderFactory

    • Constructor Detail

      • FixedScaleProviderFactory

        public FixedScaleProviderFactory​(com.applitools.eyes.Logger logger,
                                         double scaleRatio,
                                         PropertyHandler<ScaleProvider> scaleProviderHandler)
        Parameters:
        scaleRatio - The ratio to scale by.
    • Method Detail

      • getScaleProviderImpl

        protected ScaleProvider getScaleProviderImpl​(int imageToScaleWidth)
        Description copied from class: ScaleProviderFactory
        The implementation of getting/creating the scale provider, should be implemented by child classes.
        Specified by:
        getScaleProviderImpl in class ScaleProviderFactory
        Parameters:
        imageToScaleWidth - The width of the image to scale. This parameter CAN be by class implementing the factory, but this is not mandatory.
        Returns:
        The scale provider to be used.