Revision 27361 trunk/libraries/libRaster/src/org/gvsig/raster/datastruct/Transparency.java
Transparency.java | ||
---|---|---|
300 | 300 |
* directamente a destino |
301 | 301 |
* @param buffer |
302 | 302 |
* @param dst |
303 |
* @throws InterruptedException |
|
303 | 304 |
*/ |
304 |
public void mergeBuffer(IBuffer buffer, IBuffer dst) { |
|
305 |
public void mergeBuffer(IBuffer buffer, IBuffer dst) throws InterruptedException {
|
|
305 | 306 |
for (int y = 0; y < mask.getHeight(); y++) { |
306 | 307 |
for (int x = 0; x < mask.getWidth(); x++) { |
307 | 308 |
// ((a / 255) * (b / 255)) * 255 |
... | ... | |
318 | 319 |
* @param dst Buffer destino de la mezcla |
319 | 320 |
* @param buf Buffer a mezclar sobre el destino |
320 | 321 |
* @return Buffer destino |
322 |
* @throws InterruptedException |
|
321 | 323 |
*/ |
322 |
public static IBuffer merge(IBuffer dst, IBuffer buf) { |
|
324 |
public static IBuffer merge(IBuffer dst, IBuffer buf) throws InterruptedException {
|
|
323 | 325 |
if(buf == null && dst != null) |
324 | 326 |
return dst; |
325 | 327 |
if(dst == null && buf != null) |
... | ... | |
341 | 343 |
/** |
342 | 344 |
* Mezcla un objeto Transparency con el actual |
343 | 345 |
* @param ts objeto TransparencyStatus |
346 |
* @throws InterruptedException |
|
344 | 347 |
*/ |
345 |
public Transparency merge(Transparency transp) { |
|
348 |
public Transparency merge(Transparency transp) throws InterruptedException {
|
|
346 | 349 |
Transparency t = new Transparency(); |
347 | 350 |
// Mezclamos la opacidad |
348 | 351 |
double op1 = (double) opacity / (double) MAX_OPACITY; |
... | ... | |
402 | 405 |
* @param line Linea del buffer |
403 | 406 |
* @param col Columna del buffer |
404 | 407 |
* @return |
408 |
* @throws InterruptedException |
|
405 | 409 |
*/ |
406 |
protected boolean isNoData(int line, int col) { |
|
410 |
protected boolean isNoData(int line, int col) throws InterruptedException {
|
|
407 | 411 |
switch (originalData.getDataType()) { |
408 | 412 |
case IBuffer.TYPE_BYTE: |
409 | 413 |
if(((double)originalData.getElemByte(line, col, 0)) == noData) |
Also available in: Unified diff