Changeset 8412 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2015-05-22T01:06:28+02:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r8404 r8412 1612 1612 * @return The same image as {@code bi} where all pixels of the given color are transparent. 1613 1613 * This resulting image has also the special property {@link #PROP_TRANSPARENCY_FORCED} set to {@code color} 1614 * @since 71321615 1614 * @see BufferedImage#getProperty 1616 1615 * @see #isTransparencyForced 1616 * @since 7132 1617 1617 */ 1618 1618 public static BufferedImage makeImageTransparent(BufferedImage bi, Color color) { … … 1653 1653 * @param bi The {@code BufferedImage} to test 1654 1654 * @return {@code true} if the transparency of {@code bi} has been enforced by a previous call to {@code makeImageTransparent}. 1655 * @see #makeImageTransparent 1655 1656 * @since 7132 1656 * @see #makeImageTransparent1657 1657 */ 1658 1658 public static boolean isTransparencyForced(BufferedImage bi) { … … 1664 1664 * @param bi The {@code BufferedImage} to test 1665 1665 * @return {@code true} if {@code bi} has a transparent color determined by a previous call to {@code read}. 1666 * @see #read 1666 1667 * @since 7132 1667 * @see #read1668 1668 */ 1669 1669 public static boolean hasTransparentColor(BufferedImage bi) { 1670 1670 return bi != null && !bi.getProperty(PROP_TRANSPARENCY_COLOR).equals(Image.UndefinedProperty); 1671 1671 } 1672 1673 /** 1674 * Shutdown background image fetcher. 1675 * @param now if {@code true}, attempts to stop all actively executing tasks, halts the processing of waiting tasks. 1676 * if {@code false}, initiates an orderly shutdown in which previously submitted tasks are executed, but no new tasks will be accepted 1677 * @since 8412 1678 */ 1679 public static void shutdown(boolean now) { 1680 if (now) { 1681 IMAGE_FETCHER.shutdownNow(); 1682 } else { 1683 IMAGE_FETCHER.shutdown(); 1684 } 1685 } 1672 1686 }
Note:
See TracChangeset
for help on using the changeset viewer.