Interface ScalableSurface

    • Field Detail

      • IDENTITY_PIXELSCALE

        static final float IDENTITY_PIXELSCALE
        Setting surface-pixel-scale of 1.0f, results in same pixel- and window-units.
        See Also:
        Constant Field Values
      • AUTOMAX_PIXELSCALE

        static final float AUTOMAX_PIXELSCALE
        Setting surface-pixel-scale of 0.0f, results in maximum platform dependent pixel-scale, i.e. pixel-units >> window-units where available.
        See Also:
        Constant Field Values
    • Method Detail

      • getRequestedSurfaceScale

        float[] getRequestedSurfaceScale​(float[] result)
        Returns the requested pixel scale of the associated NativeSurface.
        Parameters:
        result - float[2] storage for the result
        Returns:
        the passed storage containing the current pixelScale for chaining
        See Also:
        setSurfaceScale(float[])
      • getCurrentSurfaceScale

        float[] getCurrentSurfaceScale​(float[] result)
        Returns the current pixel scale of the associated NativeSurface.
        Parameters:
        result - float[2] storage for the result
        Returns:
        the passed storage containing the current pixelScale for chaining
      • getMinimumSurfaceScale

        float[] getMinimumSurfaceScale​(float[] result)
        Returns the minimum pixel scale of the associated NativeSurface.
        Parameters:
        result - float[2] storage for the result
        Returns:
        the passed storage containing the minimum pixelScale for chaining
      • getMaximumSurfaceScale

        float[] getMaximumSurfaceScale​(float[] result)
        Returns the maximum pixel scale of the associated NativeSurface.

        The maximum pixel scale maybe used to determine the proper dpi value of the monitor displaying this NativeSurface.

            surfacePpMM = monitorPpMM * currentSurfaceScale / nativeSurfaceScale,
            with PpMM == pixel per millimeter
         

        Parameters:
        result - float[2] storage for the result
        Returns:
        the passed storage containing the maximum pixelScale for chaining