|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
java.lang.Objectjava.awt.image.LookupTable
public abstract class LookupTable
此抽象類別定義了一個尋找表物件。ByteLookupTable 和 ShortLookupTable 是分別包含 byte 和 short 資料的子類別。尋找表包含圖像的一個或多個 band(或份量)的資料陣列(例如獨立的 R、G 和 B 陣列),還包含一個偏移量,在對陣列進行索引前要從輸入值中減去該偏移量。這就允許為受約束的輸入提供一個小於本機資料大小的陣列。如果尋找表中僅有一個陣列,則將其應用到所有的 band。所有陣列必須具有相同的大小。
ByteLookupTable,
ShortLookupTable,
LookupOp| 建構子摘要 | |
|---|---|
protected |
LookupTable(int offset,
int numComponents)
根據份量數和尋找表中的偏移量建構一個新 LookupTable。 |
| 方法摘要 | |
|---|---|
int |
getNumComponents()
返回尋找表中的份量數。 |
int |
getOffset()
返回偏移量。 |
abstract int[] |
lookupPixel(int[] src,
int[] dest)
返回一個像素的 int 份量陣列。 |
| 從類別 java.lang.Object 繼承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 建構子詳細資訊 |
|---|
protected LookupTable(int offset,
int numComponents)
offset - 在對此 LookupTable 的資料陣列進行索引前,要從輸入值減去的偏移量numComponents - 此 LookupTable 中的資料陣列數目
IllegalArgumentException - 如果 offset 小於 0,或者 numComponents 小於 1| 方法詳細資訊 |
|---|
public int getNumComponents()
LookupTable 中的份量數。public int getOffset()
LookupTable 的偏移量。
public abstract int[] lookupPixel(int[] src,
int[] dest)
int 份量陣列。dest 陣列包含尋找的結果並返回。如果 dest 為 null,則分派一個新陣列。源和目標可以相等。
src - 一個像素的源份量陣列dest - 一個像素的目標份量陣列,使用此 LookupTable 轉換
int 份量陣列。
|
JavaTM 2 Platform Standard Ed. 6 |
|||||||||
| 上一個類別 下一個類別 | 框架 無框架 | |||||||||
| 摘要: 巢狀 | 欄位 | 建構子 | 方法 | 詳細資訊: 欄位 | 建構子 | 方法 | |||||||||
版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。