java命名空间javax.imageio类imagetypespecifier的类成员方法:
createinterleaved定义及介绍
本文导语:
createinterleaved
public static imagetypespecifier createinterleaved(colorspace colorspace,
int[] bandoffsets,
int datatype,
boolean hasalpha...
createinterleaved
public static imagetypespecifier createinterleaved(colorspace colorspace,
int[] bandoffsets,
int datatype,
boolean hasalpha,
boolean isalphapremultiplied)
- 返回交错图像格式的说明符,它将使用
componentcolormodel 和 pixelinterleavedsamplemodel 来存储单个 byte、short 或 int 值形式的每个像素组件。
- 参数:
colorspace - 所需的 colorspace。bandoffsets - 指示每个 band 的偏移量的 int 数组。datatype - 所需的数据类型,它是 databuffer 类中的枚举之一。hasalpha - 如果需要 alpha 通道,则该参数为 true。isalphapremultiplied - 如果颜色通道将预乘以 alpha 通道,则该参数为 true。
- 返回:
- 具有所需特征的
imagetypespecifier。
- 抛出:
illegalargumentexception - 如果 colorspace 为 null。
illegalargumentexception - 如果 bandoffsets 为 null。
illegalargumentexception - 如果 datatype 不是合法的 databuffer.type_* 常量之一。
illegalargumentexception - 如果 bandoffsets.length 不等于颜色空间组件的数量;如果 hasalpha 为 true 时,该长度不等于组件数量加 1。