NativeSurface implementation,
see setSurfaceScale(float[]).
| Modifier and Type | Field and Description |
|---|---|
| public static final float | AUTOMAX_PIXELSCALE
Setting surface-pixel-scale of , results in maximum platform dependent pixel-scale, i.e. pixel-units >> window-units where available. |
| public static final float | IDENTITY_PIXELSCALE
Setting surface-pixel-scale of , results in same pixel- and window-units. |
| Modifier and Type | Method and Description |
|---|---|
| public float[] | Returns: the passed storage containing the current pixelScale for chainingfloat[2] storage for the result result)Returns the current pixel scale of the associated |
| public float[] | Returns: the passed storage containing the maximum pixelScale for chainingfloat[2] storage for the result result)Returns the maximum pixel scale of the associated |
| public float[] | Returns: the passed storage containing the minimum pixelScale for chainingfloat[2] storage for the result result)Returns the minimum pixel scale of the associated |
| public float[] | Returns: the passed storage containing the current pixelScale for chainingfloat[2] storage for the result result)Returns the |
| public boolean | setSurfaceScale(final float[]
requested surface pixel scale float[2] values for x- and y-direction. pixelScale)Request a pixel scale in x- and y-direction for the associated |
| AUTOMAX_PIXELSCALE | back to summary |
|---|---|
| public static final float AUTOMAX_PIXELSCALE Setting surface-pixel-scale of , results in maximum platform dependent pixel-scale, i.e. pixel-units >> window-units where available. | |
| IDENTITY_PIXELSCALE | back to summary |
|---|---|
| public static final float IDENTITY_PIXELSCALE Setting surface-pixel-scale of , results in same pixel- and window-units. | |
| getCurrentSurfaceScale | back to summary |
|---|---|
| public float[] getCurrentSurfaceScale(final float[] result) Returns the current pixel scale of the associated
| |
| getMaximumSurfaceScale | back to summary |
|---|---|
| public float[] getMaximumSurfaceScale(final float[] result) Returns the maximum pixel scale of the associated
The maximum pixel scale maybe used to determine the proper dpi
value of the monitor displaying this surfacePpMM = monitorPpMM * currentSurfaceScale / nativeSurfaceScale, with PpMM == pixel per millimeter
| |
| getMinimumSurfaceScale | back to summary |
|---|---|
| public float[] getMinimumSurfaceScale(final float[] result) Returns the minimum pixel scale of the associated
| |
| getRequestedSurfaceScale | back to summary |
|---|---|
| public float[] getRequestedSurfaceScale(final float[] result) Returns the
| |
| setSurfaceScale | back to summary |
|---|---|
| public boolean setSurfaceScale(final float[] pixelScale) Request a pixel scale in x- and y-direction for the associated
Default pixel scale request for both directions is
In case platform only supports uniform pixel scale, i.e. one scale for both directions,
either
The requested pixel scale will be validated against platform limits before native scale-setup,
i.e. clipped to
The actual realized pixel scale values of the
| |