Revision 2311 org.gvsig.raster/branches/org.gvsig.raster_dataaccess_refactoring/org.gvsig.raster.lib/org.gvsig.raster.lib.api/src/main/java/org/gvsig/fmap/dal/coverage/store/props/ColorInterpretation.java
ColorInterpretation.java | ||
---|---|---|
38 | 38 |
public static final String PAL_BAND = "Palette"; |
39 | 39 |
public static final String UNDEF_BAND = "Undefined"; |
40 | 40 |
|
41 |
public static final String RED_GREEN_BAND = "Red_Green"; |
|
42 |
public static final String RED_BLUE_BAND = "Red_Blue"; |
|
43 |
public static final String GREEN_BLUE_BAND = "Green_Blue"; |
|
44 |
|
|
41 | 45 |
/** |
42 | 46 |
* Asigna un valor para la interpretaci?n de color de una banda |
43 | 47 |
* @param band Banda |
... | ... | |
53 | 57 |
public int length(); |
54 | 58 |
|
55 | 59 |
/** |
56 |
* Returns true if the color interpretation is BGR |
|
60 |
* Returns true if the values Red, Green and Blue are |
|
61 |
* assigned to any band of the image or the values Gray or Palette are |
|
62 |
* assigned. |
|
57 | 63 |
* @return |
58 | 64 |
*/ |
65 |
public boolean hasInterpretation(); |
|
66 |
|
|
67 |
/** |
|
68 |
* Returns true if the color interpretation is BGR, that is, the |
|
69 |
* three first bands of the image are Blue, Green and Red. |
|
70 |
* @return |
|
71 |
*/ |
|
59 | 72 |
public boolean isBGR(); |
60 | 73 |
|
61 | 74 |
/** |
62 |
* Returns true if the color interpretation is RGB |
|
75 |
* Returns true if the color interpretation is RGB, that is, the |
|
76 |
* three first bands of the image are Red, Green and Blue. |
|
63 | 77 |
* @return |
64 | 78 |
*/ |
65 | 79 |
public boolean isRGB(); |
66 | 80 |
|
67 | 81 |
/** |
68 |
* Returns true if the color interpretation is ARGB |
|
82 |
* Returns true if the color interpretation is ARGB, that is, the |
|
83 |
* four first bands of the image are Red, Green, Blue and Alpha. |
|
69 | 84 |
* @return |
70 | 85 |
*/ |
71 |
public boolean isARGB();
|
|
86 |
public boolean isRGBA();
|
|
72 | 87 |
|
73 | 88 |
/** |
74 | 89 |
* Returns true if the color interpretation is Palette |
... | ... | |
156 | 171 |
* in the destination buffer |
157 | 172 |
* @return |
158 | 173 |
*/ |
159 |
public int[] getRenderBandsFromColorInterpretation();
|
|
174 |
public int[] buildRenderBands();
|
|
160 | 175 |
|
161 | 176 |
/** |
162 | 177 |
* Clones this object |
Also available in: Unified diff