- Timestamp:
- 2017-04-13T13:08:31+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageWarp.java
r11895 r11896 117 117 // border strategy: continue with the color of the outermost pixel, 118 118 // but change alpha component to fully translucent 119 int a = Utils.clamp(x, 0, img.getWidth() - 1); // clamp(x, img.getWidth());120 int b = Utils.clamp(y, 0, img.getHeight() - 1); // clamp(y, img.getHeight());119 int a = Utils.clamp(x, 0, img.getWidth() - 1); 120 int b = Utils.clamp(y, 0, img.getHeight() - 1); 121 121 int clr = img.getRGB(a, b); 122 122 if (a == x && b == y)
Note:
See TracChangeset
for help on using the changeset viewer.