java命名空间javax.imageio类imagetypespecifier的类成员方法:
createbanded定义及介绍
本文导语:
createbanded
public static imagetypespecifier createbanded(colorspace colorspace,
int[] bankindices,
int[] bandoffsets,
int datatype,
...
createbanded
public static imagetypespecifier createbanded(colorspace colorspace,
int[] bankindices,
int[] bandoffsets,
int datatype,
boolean hasalpha,
boolean isalphapremultiplied)
- 返回带状图像格式的说明符,它将使用
componentcolormodel 和 bandedsamplemodel 来存储单独数组中的每个通道。
- 参数:
colorspace - 所需的 colorspace。bankindices - 一个 int 数组,指示用来存储每个 band 的库。bandoffsets - 一个 int 数组,指示其库中每个 band 的起始偏移量。datatype - 所需的数据类型,它是 databuffer 类中的redhat7.3下,java程序打印中文直接用java命令执行正常,用crontab执行java命令为乱码
iis7站长之家之一。hasalpha - 如果需要 alpha 通道,则该参数为 true。isalphapremultiplied - 如果颜色通道将预乘以 alpha 通道,则该参数为 true。
- 返回:
- 具有所需特征的
imagetypespecifier。
- 抛出:
illegalargumentexception - 如果 colorspace 为 null。
illegalargumentexception - 如果 bankindices 为 null。
illegalargumentexception - 如果 bandoffsets 为 null。
illegalargumentexception - 如果 bankindices 和 bandoffsets 的长度不同。
illegalargumentexception - 如果 bandoffsets.length 不等于颜色空间组件的数量;如果 hasalpha 为 true 时,该长度不等于组件数量加 1。
illegalargumentexception - 如果 datatype 不是合法的 databuffer.type_* 常量之一。