public class ShortLookupTable extends LookupTable
ByteLookupTable , LookupOp
| Constructor and Description |
|---|
ShortLookupTable(int offset, short[] data)
构造一个ShortLookupTable对象从一个短数组,表示每个频段的查找表。
|
ShortLookupTable(int offset, short[][] data)
从表示每个频段的查找表的短数组数组构造一个ShortLookupTable对象。
|
| Modifier and Type | Method and Description |
|---|---|
short[][] |
getTable()
通过引用返回查找表数据。
|
int[] |
lookupPixel(int[] src, int[] dst)
返回用查找表翻译的像素数组。
|
short[] |
lookupPixel(short[] src, short[] dst)
返回用查找表翻译的像素数组。
|
getNumComponents, getOffsetpublic ShortLookupTable(int offset,
short[][] data)
offset - 在索引到数组之前从输入值中减去的值
data - 表示每个频带的查找表的短阵列数组
public ShortLookupTable(int offset,
short[] data)
offset - 从索引到数组之前的输入值中减去该值
data - 一组短裤
public final short[][] getTable()
public int[] lookupPixel(int[] src,
int[] dst)
dst 。
lookupPixel在
LookupTable
src - 源数组。
dst - 目标数组。
该数组必须至少src 。
如果dst为null ,则将分配与src相同长度的新数组。
dst ,一个
int数组的样本。
ArrayIndexOutOfBoundsException -如果
src长于
dst或如果出于任何元件
i的
src ,
(src[i]&0xffff)-offset是小于零或者大于或等于查找表的长度为任何频带。
public short[] lookupPixel(short[] src,
short[] dst)
dst 。
src - 源数组。
dst - 目标数组。
该数组必须至少src 。
如果dst是null , dst null一个新的数组,长度与src相同。
dst ,一个
int数组的样本。
ArrayIndexOutOfBoundsException -如果
src长于
dst或如果出于任何元件
i的
src ,
(src[i]&0xffff)-offset是小于零或者大于或等于查找表的长度为任何频带。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.