| 1 | /* |
| 2 | * Copyright (C) 2012. |
| 3 | * |
| 4 | * This program is free software; you can redistribute it and/or modify |
| 5 | * it under the terms of the GNU General Public License version 3 or |
| 6 | * version 2 as published by the Free Software Foundation. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, but |
| 9 | * WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 11 | * General Public License for more details. |
| 12 | */ |
| 13 | package uk.me.parabola.imgfmt.app.typ; |
| 14 | |
| 15 | /** |
| 16 | * Interface for adding an alpha value to a previously saved colour value. |
| 17 | * |
| 18 | * The current TYP editors place the alpha value after the colour definition, eg: |
| 19 | * |
| 20 | * "#992299" alpha 5 |
| 21 | * |
| 22 | * so we need to add the alpha value to a colour that has already been read |
| 23 | * in. |
| 24 | * |
| 25 | * @author Steve Ratcliffe |
| 26 | */ |
| 27 | public interface AlphaAdder { |
| 28 | |
| 29 | /** |
| 30 | * Add an alpha value to the last colour that was saved. |
| 31 | * |
| 32 | * @param alpha A true alpha value ie 0 is transparent, 255 opaque. |
| 33 | */ |
| 34 | public void addAlpha(int alpha); |
| 35 | } |