Class DefaultImageContext

  • All Implemented Interfaces:
    ImageContext

    public class DefaultImageContext
    extends Object
    implements ImageContext
    Very simple ImageContext implementation that uses the Toolkit's screen resolution.
    • Constructor Detail

      • DefaultImageContext

        public DefaultImageContext()
        Main constructor.
    • Method Detail

      • getSourceResolution

        public float getSourceResolution()
        Returns the resolution (in dpi) that is to be used when interpreting pixel sizes where no resolution information is available.
        Specified by:
        getSourceResolution in interface ImageContext
        Returns:
        the source resolution (in dpi)