Revision 2106 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.algorithm/src/main/java/org/gvsig/raster/algorithm/process/ProcessUtils.java
ProcessUtils.java | ||
---|---|---|
306 | 306 |
* @param bandCount |
307 | 307 |
* @return |
308 | 308 |
*/ |
309 |
public Buffer createOutputBuffer(Rectangle2D sourcePxBBox, int bandCount) { |
|
309 |
public Buffer createOutputBuffer(int w, int h, int bandCount) { |
|
310 |
return createOutputBuffer(w, h, bandCount, Buffer.TYPE_DOUBLE); |
|
311 |
} |
|
312 |
|
|
313 |
public Buffer createOutputBuffer(int w, int h, int bandCount, int datatype) { |
|
310 | 314 |
RasterManager rManager = RasterLocator.getManager(); |
311 | 315 |
BufferParam bParams = rManager.getBufferFactory().createBufferParams( |
312 |
(int)sourcePxBBox.getWidth(),
|
|
313 |
(int)sourcePxBBox.getHeight(),
|
|
316 |
w,
|
|
317 |
h,
|
|
314 | 318 |
bandCount, |
315 |
Buffer.TYPE_DOUBLE,
|
|
319 |
datatype,
|
|
316 | 320 |
true); |
317 | 321 |
Buffer resultBuffer = null; |
318 | 322 |
try { |
Also available in: Unified diff