Revision 3030
trunk/libraries/libCq CMS for java.old/src/org/cresques/io/MrSidFile.java | ||
---|---|---|
316 | 316 |
SceneWidth = currentFullWidth; |
317 | 317 |
SceneHeight = currentFullHeight; |
318 | 318 |
} else { |
319 |
SceneWidth = (int) (((double) currentViewWidth) / viewportScale); |
|
320 |
SceneHeight = (int) (((double) currentViewHeight) / viewportScale); |
|
319 |
SceneWidth = (int) Math.round((((double) currentViewWidth) / viewportScale) + 1); |
|
320 |
if (SceneWidth > currentFullWidth) |
|
321 |
SceneWidth = currentFullWidth; |
|
322 |
SceneHeight = (int) Math.round((((double) currentViewHeight) / viewportScale) + 1); |
|
323 |
if (SceneHeight > currentFullHeight) |
|
324 |
SceneHeight = currentFullHeight; |
|
321 | 325 |
} |
322 | 326 |
|
323 | 327 |
if (SceneWidth == 0) { |
... | ... | |
388 | 392 |
(0xff & bandB[k]); |
389 | 393 |
} catch (java.lang.ArrayIndexOutOfBoundsException e) { |
390 | 394 |
} |
391 |
} |
|
392 |
} |
|
393 |
|
|
395 |
} |
|
396 |
|
|
397 |
|
|
398 |
} |
|
394 | 399 |
/*if (eColorSpace == LTIColorSpace.LTI_COLORSPACE_GRAYSCALE) */ |
395 | 400 |
|
396 | 401 |
buffer = null; |
Also available in: Unified diff