Last change
on this file since 13496 was 12782, checked in by Don-vip, 7 years ago |
see #15229 - see #15182 - move ImageProcessor from gui.layer to tools
|
-
Property svn:eol-style
set to
native
|
File size:
776 bytes
|
Rev | Line | |
---|
[8625] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
[12782] | 2 | package org.openstreetmap.josm.tools;
|
---|
[8625] | 3 |
|
---|
| 4 | import java.awt.image.BufferedImage;
|
---|
| 5 |
|
---|
| 6 | /**
|
---|
| 7 | * Processor that modifies images (sharpen, brightness, etc.).
|
---|
[12782] | 8 | * This interface is used by imagery layers to filter the
|
---|
[8625] | 9 | * displayed images (implemented in plugins).
|
---|
| 10 | *
|
---|
| 11 | * @author Nipel-Crumple
|
---|
[10600] | 12 | * @since 8625 (creation)
|
---|
| 13 | * @since 10600 (functional interface)
|
---|
[12782] | 14 | * @since 12782 (moved from {@code gui.layer} package)
|
---|
[8625] | 15 | */
|
---|
[10600] | 16 | @FunctionalInterface
|
---|
[8625] | 17 | public interface ImageProcessor {
|
---|
| 18 |
|
---|
| 19 | /**
|
---|
| 20 | * This method should process given image according to image processors
|
---|
[12782] | 21 | * which is contained in the layer
|
---|
[8625] | 22 | *
|
---|
| 23 | * @param image that should be processed
|
---|
| 24 | *
|
---|
| 25 | * @return processed image
|
---|
| 26 | */
|
---|
[8632] | 27 | BufferedImage process(BufferedImage image);
|
---|
[8625] | 28 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.