java命名空间javax.imageio类imagereader的类成员方法:
isimagetiled定义及介绍
本文导语:
isimagetiled
public boolean isimagetiled(int imageindex)
throws ioexception
如果图像被组织成 tile(即等大小的非重叠矩形),则返回 true。
reader 插件可以选择是否将图像中出现的 tiling 按其存储时的原样公开。甚至可以选择...
isimagetiled
public boolean isimagetiled(int imageindex)
throws ioexception
- 如果图像被组织成 tile(即等大小的非重叠矩形),则返回
true。
reader 插件可以选择是否将图像中出现的 tiling 按其存储时的原样公开。甚至可以选择图像中没有显式存在 tiling 时公开 tiling。通常,只有在对访问单独的 tile 有利(在速度或空间方面)时才应该公开 tiling。不管 reader 是否公开 tiling,它必须能够读取 imagereadparam 中指定的任意矩形区域。
对于可以保证所有平铺所有图像或者不平铺图像的 reader,分别返回 true 或 false,而不必访问任何图像数据。在这种情况下,即使输入源没有设置或者图像索引超出范围,也未必抛出异常。
默认实现返回 false。
- 参数:
imageindex - 要查询的图像的索引。
- 返回:
- 如果图像被平铺,则返回
true。
- 抛出:
illegalstateexception - 如果需要输入源来确定返回值,但没有设置输入源。
indexoutofboundsexception - 如果必须访问某一图像来确定返回值,但所提供的索引超出范围。
ioexception - 如果在读取过程中发生错误。