equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
2257 } |
2257 } |
2258 } |
2258 } |
2259 return retVal; |
2259 return retVal; |
2260 } |
2260 } |
2261 |
2261 |
|
2262 boolean hasTransparentColor() { |
|
2263 return tRNS_present && |
|
2264 (tRNS_colorType == PNGImageReader.PNG_COLOR_RGB || |
|
2265 tRNS_colorType == PNGImageReader.PNG_COLOR_GRAY); |
|
2266 } |
|
2267 |
2262 // Reset all instance variables to their initial state |
2268 // Reset all instance variables to their initial state |
2263 public void reset() { |
2269 public void reset() { |
2264 IHDR_present = false; |
2270 IHDR_present = false; |
2265 PLTE_present = false; |
2271 PLTE_present = false; |
2266 bKGD_present = false; |
2272 bKGD_present = false; |