348 |
{ |
{ |
349 |
return getComponents(getPixelFromArray(pixel), components, offset); |
return getComponents(getPixelFromArray(pixel), components, offset); |
350 |
} |
} |
351 |
|
|
352 |
|
/** |
353 |
|
* Creates a <code>WriteableRaster</code> that has a <code>SampleModel</code> |
354 |
|
* that is compatible with this <code>ColorModel</code>. |
355 |
|
* |
356 |
|
* @param w the width of the writeable raster to create |
357 |
|
* @param h the height of the writeable raster to create |
358 |
|
* |
359 |
|
* @throws IllegalArgumentException if <code>w</code> or <code>h</code> |
360 |
|
* is less than or equal to zero |
361 |
|
*/ |
362 |
public final WritableRaster createCompatibleWritableRaster(int w, int h) |
public final WritableRaster createCompatibleWritableRaster(int w, int h) |
363 |
{ |
{ |
364 |
// Sun also makes this check here. |
// Sun also makes this check here. |