java命名空间javax.imageio类imagereader的类成员方法:
readtileraster定义及介绍
本文导语:
readtileraster
public raster readtileraster(int imageindex,
int tilex,
int tiley)
throws ioexception
返回包含 tile 中的原始像素数据的新 raster 对象,不应用任何颜色转换。应用程序必须...
readtileraster
public raster readtileraster(int imageindex,
int tilex,
int tiley)
throws ioexception
- 返回包含 tile 中的原始像素数据的新
raster 对象,不应用任何颜色转换。应用程序必须确定如何通过其他方法解释像素数据。
如果 canreadraster() 返回 false,则此方法抛出 unsupportedoperationexception。
默认实现检查是否支持读取 raster,如果支持且 tilex 和 tiley 为 0,则调用 readraster(imageindex, null),否则抛出 illegalargumentexception。
- 参数:
imageindex - 将被获取的图像的索引。tilex - 将被获取的 tile 的列索引(从 0 开始)。tiley - 将被获取的 tile 的行索引(从 0 开始)。
- 返回:
raster 形式的 tile。
- 抛出:
unsupportedoperationexception - 如果此插件不支持读取原始 raster。
illegalargumentexception - 如果 tile 索引超出范围。
illegalstateexception - 如果尚未设置输入源。
indexoutofboundsexception - 如果 imageindex 超出范围。
ioexception - 如果在读取过程中发生错误。- 另请参见:
readtile(int, int, int),
readraster(int, javax.imageio.imagereadparam),
raster