java命名空间javax.imageio类imagereadparam的类成员方法:
numprogressivepasses定义及介绍
本文导语:
numprogressivepasses
protected int numprogressivepasses
从源中读取的逐步传递的最大数量。默认情况下,该值被设置为 integer.max_value,指示应该解码直至最后一个可用传递(包括)的传递。
子类应该确保此值为正数。此外,如果该值不...
numprogressivepasses
protected int numprogressivepasses
- 从源中读取的逐步传递的最大数量。默认情况下,该值被设置为
integer.max_value,指示应该解码直至最后一个可用传递(包括)的传递。
子类应该确保此值为正数。此外,如果该值不是 integer.max_value,则 minprogressivepass + numprogressivepasses - 1 不应该超过 integer.max_value。
imagereadparam
public imagereadparam()
- 构造一个
imagereadparam。
setdestinationtype
public void setdestinationtype(imagetypespecifier destinationtype)
- 从类
iioparam 复制的描述
- 使用
imagetypespecifier 设置目标图像的所需图像类型。
在读取时,如果已经使用此方法设置目标区域的布局,则每次调用 imagereader 的 read 方法都将返回一个新的 bufferedimage,它使用由所提供的类型说明符指定的格式。此方法的一个副作用是,任何由 imagereadparam.setdestination(bufferedimage) 设置的目标 bufferedimage 将不再被设置为目标。换句话说,在调用 setdestination((bufferedimage)null) 时可以考虑此方法。
在写入时,或许会使用目标类型确定图像的颜色类型。samplemodel 信息将被忽略,其可以为 null。例如,一个 4 band 的图像可以表示 cmyk 或 rgba 数据。如果设置了目标类型,则其 colormodel 将重写该图像自身的所有 colormodel。这在使用 setsourcebands 时极其重要,因为该图像的 colormodel 将引用整个图像,而不是被写入的 band 的子集。
- 覆盖:
- 类
iioparam 中的 setdestinationtype
- 参数:
destinationtype - 用来确定目标布局和颜色类型的 imagetypespecifier。- 另请参见:
iioparam.getdestinationtype()