267 |
raster.createWritableChild(x, y, w, h, x, y, |
raster.createWritableChild(x, y, w, h, x, y, |
268 |
null // same bands |
null // same bands |
269 |
); |
); |
270 |
|
if (src.getSampleModel () instanceof ComponentSampleModel |
271 |
// Refer to ComponentDataBlitOp for optimized data blitting: |
&& dest.getSampleModel () instanceof ComponentSampleModel) |
272 |
ComponentDataBlitOp.INSTANCE.filter(src, dest); |
// Refer to ComponentDataBlitOp for optimized data blitting: |
273 |
|
ComponentDataBlitOp.INSTANCE.filter(src, dest); |
274 |
|
else |
275 |
|
{ |
276 |
|
// slower path |
277 |
|
int samples[] = src.getPixels (x, y, w, h, (int [])null); |
278 |
|
dest.setPixels (x, y, w, h, samples); |
279 |
|
} |
280 |
return dest; |
return dest; |
281 |
} |
} |
282 |
|
|
547 |
raster.createWritableChild(x, y, w, h, x, y, |
raster.createWritableChild(x, y, w, h, x, y, |
548 |
null // same bands |
null // same bands |
549 |
); |
); |
550 |
|
|
551 |
// Refer to ComponentDataBlitOp for optimized data blitting: |
if (src.getSampleModel () instanceof ComponentSampleModel |
552 |
ComponentDataBlitOp.INSTANCE.filter(src, dest); |
&& dest.getSampleModel () instanceof ComponentSampleModel) |
553 |
|
|
554 |
|
// Refer to ComponentDataBlitOp for optimized data blitting: |
555 |
|
ComponentDataBlitOp.INSTANCE.filter(src, dest); |
556 |
|
else |
557 |
|
{ |
558 |
|
// slower path |
559 |
|
int samples[] = src.getPixels (x, y, w, h, (int [])null); |
560 |
|
dest.setPixels (x, y, w, h, samples); |
561 |
|
} |
562 |
} |
} |
563 |
|
|
564 |
public void setRGB(int x, int y, int argb) |
public void setRGB(int x, int y, int argb) |