JavaTM 2 Platform
Standard Ed. 5.0

java.awt.image
Ŭ·¡½º LookupTable

java.lang.Object 
  »óÀ§¸¦ È®Àå java.awt.image.LookupTable
¾Ë·ÁÁø Á÷°è ¼­ºê Ŭ·¡½º:
ByteLookupTable, ShortLookupTable

public abstract class LookupTable
extends Object

ÀÌ Ãß»ó Ŭ·¡½º´Â ·è¾÷Å×ÀÌºí °´Ã¼¸¦ Á¤ÀÇÇÕ´Ï´Ù. ByteLookupTable¿Í ShortLookupTable´Â ¼­ºê Ŭ·¡½ºÀ̸ç, ByteLookupTable´Â byte µ¥ÀÌÅ͸¦ Æ÷ÇÔÇØ, ShortLookupTable´Â short µ¥ÀÌÅ͸¦ Æ÷ÇÔÇÕ´Ï´Ù. ·è¾÷Å×À̺íÀº À̹ÌÁöÀÇ 1°³ ÀÌ»óÀÇ ¹êµå (¶Ç´Â ¼ººÐ)ÀÇ µ¥ÀÌÅÍ ¹è¿­ (¿¹¸¦ µé¾î R, G, B °¢ ¹è¿­)°ú ¹è¿­¿¡ À妽º¸¦ ºÙÀ̱â Àü¿¡ ÀÔ·ÂÄ¡·ÎºÎÅÍ °¨»êµÇ´Â ¿ÀÇÁ¼Â(offset)¸¦ Æ÷ÇÔÇÏ°í ÀÖ½À´Ï´Ù. ÀÌ°Í¿¡ ÀÇÇØ ³×ÀÌƼºê µ¥ÀÌÅÍ »çÀÌÁ´Ù ÀÛÀº ¹è¿­ÀÌ Á¦°øµÇ¾î Á¦¾àµÈ ÀÔ·ÂÀ» ¹Þ¾ÆµéÀÏ ¼ö°¡ ÀÖ½À´Ï´Ù. ·è¾÷Å×ÀÌºí¿¡ ¹è¿­ÀÌ 1°³ ¹Û¿¡ ¾ø´Â °æ¿ì, ±× ¹è¿­ÀÌ ¸ðµç ¹êµå¿¡ Àû¿ëµË´Ï´Ù. ¸ðµç ¹è¿­Àº °°Àº »çÀÌÁî°¡ ¾Æ´Ï¸é ¾ÈµË´Ï´Ù.

°ü·Ã Ç׸ñ:
ByteLookupTable, ShortLookupTable, LookupOp

»ý¼ºÀÚ °³¿ä
protected LookupTable (int offset, int numComponents)
          ¼ººÐ¼ö¿Í ·è¾÷Å×À̺íÀÇ ¿ÀÇÁ¼Â(offset)·ÎºÎÅÍ, »õ·Î¿î LookupTable¸¦ ±¸ÃàÇÕ´Ï´Ù.
 
¸Þ¼­µå °³¿ä
 int getNumComponents ()
          ·è¾÷Å×À̺íÀÇ ¼ººÐ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.
 int getOffset ()
          ¿ÀÇÁ¼Â(offset)¸¦ ¸®ÅÏÇÕ´Ï´Ù.
abstract  int[] lookupPixel (int[] src, int[] dest)
          1°³ÀÇ Çȼ¿ÀÇ ¼ººÐÀÇ int ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù.
 
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼­µå
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

»ý¼ºÀÚ »ó¼¼

LookupTable

protected LookupTable(int offset,
                      int numComponents)
¼ººÐ¼ö¿Í ·è¾÷Å×À̺íÀÇ ¿ÀÇÁ¼Â(offset)·ÎºÎÅÍ, »õ·Î¿î LookupTable¸¦ ±¸ÃàÇÕ´Ï´Ù.

ÆĶó¹ÌÅÍ:
offset - ÀÌ LookupTable µ¥ÀÌÅÍ ¹è¿­¿¡ À妽º ºÙÀÌ°í Çϱâ Àü¿¡ ÀÔ·ÂÄ¡·ÎºÎÅÍ °¨»êÇÏ´Â ¿ÀÇÁ¼Â(offset)
numComponents - ÀÌ LookupTable µ¥ÀÌÅÍ ¹è¿­¼ö
¿¹¿Ü:
IllegalArgumentException - offsetÀÌ Á¦·Îº¸´Ù ÀÛÀº °æ¿ì, ¶Ç´Â numComponents ±æÀÌ°¡ 1 º¸´Ù ªÀº °æ¿ì
¸Þ¼­µåÀÇ »ó¼¼

getNumComponents

public int getNumComponents()
·è¾÷Å×À̺íÀÇ ¼ººÐ¼ö¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÀÌ LookupTable ¼ººÐ¼ö

getOffset

public int getOffset()
¿ÀÇÁ¼Â(offset)¸¦ ¸®ÅÏÇÕ´Ï´Ù.

¹Ýȯ°ª:
ÀÌ LookupTable ¿ÀÇÁ¼Â(offset)

lookupPixel

public abstract int[] lookupPixel(int[] src,
                                  int[] dest)
1°³ÀÇ Çȼ¿ÀÇ ¼ººÐÀÇ int ¹è¿­À» ¸®ÅÏÇÕ´Ï´Ù. dest ¹è¿­¿¡´Â ·è ¾÷ÀÇ °á°ú°¡ Æ÷ÇÔµÇ¾î ¸®Åϵ˴ϴ٠. dest°¡ nullÀÎ °æ¿ì, »õ·Î¿î ¹è¿­À» ÇÒ´çÇÒ ¼ö ÀÖ½À´Ï´Ù. Àü¼Û¿ø°ú Àü¼Û ¸ÕÀú °°Àº °ÍÀ» ÁöÁ¤ÇÒ ¼ö ÀÖ½À´Ï´Ù.

ÆĶó¹ÌÅÍ:
src - 1 Çȼ¿ÀÇ ¼ººÐÀÇ Àü¼Û¿ø¹è¿­
dest - ÀÌ LookupTable·Î º¯È¯µÇ´Â 1 Çȼ¿ÀÇ ¼ººÐÀÇ Àü¼Ûó ¹è¿­
¹Ýȯ°ª:
1 Çȼ¿ÀÇ ¼ººÐÀÇ int ¹è¿­

JavaTM 2 Platform
Standard Ed. 5.0

Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.