java命名空间java.awt.image类componentsamplemodel的类成员方法:
pixelstride定义及介绍
本文导语:
pixelstride
protected int pixelstride
由此 componentsamplemodel 所描述的图像数据区域的像素间距(以数据数组元素表示)。
componentsamplemodel
public componentsamplemodel(int datatype,
int w,
int h,
...
pixelstride
protected int pixelstride
- 由此 componentsamplemodel 所描述的图像数据区域的像素间距(以数据数组元素表示)。
componentsamplemodel
public componentsamplemodel(int datatype,
int w,
int h,
int pixelstride,
int scanlinestride,
int[] bandoffsets)
- 构造具有指定参数的 componentsamplemodel。band 数量将由 bandoffsets 数组的长度给定。所有 band 都将存储在 databuffer 的第一个存储单元中。
- 参数:
datatype - 存储样本的数据类型w - 描述的图像数据区域的宽度(以像素为单位)h - 描述的图像数据区域的高度(以像素为单位)pixelstride - 描述的图像数据区域的像素间距scanlinestride - 描述的图像数据区域的行间距bandoffsets - 所有 band 的偏移量
- 抛出:
illegalargumentexception - 如果 w 或 h 不大于 0
illegalargumentexception - 如果 pixelstride 小于 0
illegalargumentexception - 如果 scanlinestride 小于 0
illegalargumentexception - 如果 numbands 小于 1
illegalargumentexception - 如果 w 和 h 的乘积大于 integer.max_value
illegalargumentexception - 如果 datatype 不是受支持的数据类型之一