Changeset 1428 for trunk/src/org/expeditee/items/Picture.java
- Timestamp:
- 08/08/19 10:28:52 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/expeditee/items/Picture.java
r1427 r1428 974 974 int x = mouseX - base_x; 975 975 int y = mouseY - base_y; 976 977 Colour c = _image.getPixel(x, y); 978 976 int xInverseScale = Math.round(x / _scale); 977 int yInverseScale = Math.round(y / _scale); 978 979 Colour c = _image.getPixel(xInverseScale, yInverseScale); 980 int c_alpha = c.getAlpha255(); 981 if (c_alpha == 0) { 982 return true; 983 } 984 979 985 int c_red = c.getRed255(); 980 986 int c_green = c.getGreen255();
Note:
See TracChangeset
for help on using the changeset viewer.