Ignore:
Timestamp:
2021-07-10T21:39:01+02:00 (3 years ago)
Author:
Don-vip
Message:

fix #21016 - ColorfulFilter not applied to empty tiles (patch by Bjoeni)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/layer/imagery/ColorfulImageProcessorTest.java

    r17275 r17983  
    9898                    BufferedImage.TYPE_4BYTE_ABGR,
    9999                    BufferedImage.TYPE_4BYTE_ABGR_PRE,
    100                     BufferedImage.TYPE_BYTE_INDEXED }) {
     100                    BufferedImage.TYPE_BYTE_INDEXED,
     101                    BufferedImage.TYPE_BYTE_BINARY}) {
    101102                assertTrue(runProcessing(data, type));
    102103            }
     
    123124
    124125    private BufferedImage createImage(Color color, int type) {
    125         BufferedImage image = type == BufferedImage.TYPE_BYTE_INDEXED
     126        BufferedImage image = type == BufferedImage.TYPE_BYTE_INDEXED || type == BufferedImage.TYPE_BYTE_BINARY
    126127                ? new BufferedImage(TEST_IMAGE_SIZE, TEST_IMAGE_SIZE, type, COLOR_MODEL)
    127128                : new BufferedImage(TEST_IMAGE_SIZE, TEST_IMAGE_SIZE, type);
Note: See TracChangeset for help on using the changeset viewer.