Ignore:
Timestamp:
2016-06-24T22:35:50+02:00 (4 years ago)
Author:
stoecker
Message:

see #9995 - don't expose GuiSizesHelper for image purpose

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r10462 r10484  
    208208         * Returns the image width in virtual pixels
    209209         * @return the image width in virtual pixels
     210         * @since 9705
    210211         */
    211212        public int getVirtualWidth() {
     
    220221        public int getVirtualHeight() {
    221222            return virtualHeight;
     223        }
     224
     225        /**
     226         * Returns the image width in pixels to use for display
     227         * @return the image width in pixels to use for display
     228         * @since 10484
     229         */
     230        public int getAdjustedWidth() {
     231            return  GuiSizesHelper.getSizeDpiAdjusted(virtualWidth);
     232        }
     233
     234        /**
     235         * Returns the image height in pixels to use for display
     236         * @return the image height in pixels to use for display
     237         * @since 10484
     238         */
     239        public int getAdjustedHeight() {
     240            return  GuiSizesHelper.getSizeDpiAdjusted(virtualHeight);
    222241        }
    223242
Note: See TracChangeset for help on using the changeset viewer.