|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
java.lang.Objectjava.awt.image.ColorModel
java.awt.image.ComponentColorModel
public class ComponentColorModel
À̰ÍÀº ColorModel
Ŭ·¡½ºÀÇ 1°³
·Î Çȼ¿Ä¡¸¦ Ãë±ÞÇÕ´Ï´Ù. ÀÌ Çȼ¿Ä¡´Â »öÁ¤º¸ ¹× ¾ËÆÄ Á¤º¸¸¦ °³º°ÀÇ »ùÇ÷μ Ç¥ÇöÇØ, °¢ »ùÇÃÀ» °³º°ÀÇ µ¥ÀÌÅÍ ¿ä¼Ò¿¡ Æ÷ÇÔÇÕ´Ï´Ù. ÀÌ Å¬·¡½º´Â ÀÓÀÇÀÇ ColorSpace
¿Í
ÇÔ²² »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. Çȼ¿Ä¡¿¡ Æ÷ÇÔÇÑ Ä÷¯ »ùÇÃÀÇ ¼ö´Â ColorSpace
¿¡ ÀÖ´Â »ö¼ººÐÀÇ ¼ö·Î µ¿ÀÏÇÏÁö ¾ÊÀ¸¸é ¾ÈµË´Ï´Ù. ¾ËÆÄ »ùÇÃÀº ´ÜÀÏ¿¡¼µµ ±¦Âú½À´Ï´Ù.
transferType
ÇüÀÇ ¿ø½ÃÀû ¹è¿ Çȼ¿ Ç¥ÇöÀ» »ç¿ëÇÏ´Â ¸Þ¼µåÀÇ °æ¿ì, ¹è¿ÀÇ ±æÀÌ´Â Ä÷¯ »ùÇà ¹× ¾ËÆÄ »ùÇÃÀÇ ¼ö·Î µ¿ÀÏÇØÁý´Ï´Ù. ¹è¿¿¡´Â Ä÷¯ »ùÇÃÀÌ ÃÖÃÊ·Î Æ÷ÇÔµÇ¾î ¾ËÆÄ »ùÇÃÀÌ ÀÖÀ¸¸é, ±× ÈÄ¿¡ Æ÷ÇԵ˴ϴÙ. Ä÷¯ »ùÇÃÀÇ ¼ø¼´Â ColorSpace
·Î ÁöÁ¤ÇÕ´Ï´Ù. º¸Åë, ÀÌ ¼ø¼´Â Ä÷¯ ¿µ¿ªÀÇ ÇüÅÂÀÇ À̸§À» ¹Ý¿µÇÕ´Ï´Ù. ¿¹¸¦ µé¾î, TYPE_RGB
À妽º 0 Àº »¡°, À妽º 1 Àº ÃÊ·Ï, ±×¸®°í À妽º 2´Â ÆÄ¶ûÀÌ µË´Ï´Ù.
Ç¥½Ã, ȤÀº À̹ÌÁö 󸮸¦ À§Çؼ Çȼ¿Ä¡¸¦ »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀ¸·Î º¯È¯Çϴ ó¸®´Â »ùÇðú ¼ººÐÀÇ 1 ´ë 1 ´ëÀÀÀÌ µË´Ï´Ù. ComponentColorModel
ÀνºÅϽºÀÇ ÀÛ¼º¿¡ »ç¿ëÇÏ´Â Àü¼ÛÇü¿¡ ÀÀÇØ, ÀνºÅϽº°¡ ºÎÈ£ ÷ºÎ³ª ºÎÈ£ ¾øÀ½Àΰ¡ ¹× Á¤¼öÇü, float, double
¾î¶² °ÍÀΰ¡ (ÀÚ¼¼ÇÑ °ÍÀº ÀÌÈĸ¦ ÂüÁ¶)¿¡ÀÇÇØ Çȼ¿ »ùÇÃÄ¡´Â Ç¥ÇöµË´Ï´Ù. »ùÇÃÄ¡¸¦ »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀ¸·Î º¯È¯Çϴ ó¸®´Â ƯÁ¤ÀÇ ±ÔÄ¢¿¡ µû¸¦ Çʿ䰡 ÀÖ½À´Ï´Ù. float ¹× double
»ùÇÃÀÇ °æ¿ì´Â Ç׵ȯÀ¸·Î Ç¥ÁØÈ ¼ººÐ°ªÀÌ ´ëÀÀÇÏ´Â »ùÇÃÄ¡¿Í µ¿ÀÏÇØÁý´Ï´Ù. Á¤¼ö »ùÇÃÀÇ °æ¿ì´Â ´Ü¼øÇÑ ½ºÄÉÀÏ ¹× ¿ÀÇÁ¼Â(offset)¸¸ÀÇ º¯È¯ÀÔ´Ï´Ù. ½ºÄÉÀÏ Á¤¼ö¿Í ¿ÀÇÁ¼Â(offset) Á¤¼ö´Â ¼ººÐ ¸¶´Ù ´Ù¸¥ ÀÏÀÌ ÀÖ½À´Ï´Ù. ½ºÄÉÀÏ Á¤¼ö¿Í ¿ÀÇÁ¼Â(offset) Á¤¼ö¸¦ Àû¿ëÇÑ °á°ú´Â ƯÁ¤ÀÇ ¹üÀ§¿¡ È®½ÇÈ÷ µé¾î°¡´Â »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀÇ °ª¼¼Æ®ÀÔ´Ï´Ù. º¸Åë, »ö¼ººÐÀÇ ¹üÀ§´Â ColorSpace
Ŭ·¡½ºÀÇ getMinValue
¸Þ¼µå¿Í getMaxValue
¸Þ¼µå¿¡ ÀÇÇØ Á¤Àǵ˴ϴÙ. ¾ËÆÄ ¼ººÐÀÇ ¹üÀ§´Â 0.0 ~ 1.0 ÀÔ´Ï´Ù.
Àü¼ÛÇü DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
¹× DataBuffer.TYPE_INT
À¸·Î ÀÛ¼ºµÈ ComponentColorModel
ÀνºÅϽº´Â ºÎÈ£ ¾øÀ½ Á¤¼ö°ªÀ¸·Î
´Ù·ç¾îÁö´Â Çȼ¿ »ùÇÃÄ¡¸¦ °¡Áý´Ï´Ù. Çȼ¿Ä¡ÀÇ »ö»ùÇðú ¾ËÆÄ »ùÇÃÀÇ ºñÆ®¼ö´Â ComponentColorModel(ColorSpace, int[], boolean, boolean, int, int)
»ý¼ºÀÚ¿¡°Ô °Ç³×Áø, ´ëÀÀÇÏ´Â Ä÷¯ »ùÇà ¹× ¾ËÆÄ »ùÇÃÀÇ ºñÆ®¼ö¿Í ´Ù¸¥ °æ¿ì°¡ ÀÖ½À´Ï´Ù. ÀÌ °æ¿ì ÀÌ Å¬·¡½º´Â »ùÇÃÄ¡ÀÇ ÃÖÇÏÁ¤µµ n ºñÆ®°¡ ¼ººÐÀÇ °ªÀ» º¸°ü À¯ÁöÇϰí ÀÖ´Ù°í º¾´Ï´Ù. ÀÌ ¶§ n´Â
»ý¼ºÀÚ¿¡°Ô °Ç³×Áø ¼ººÐÀÇ À¯È¿ ºñÆ®ÀÇ ¼öÀÔ´Ï´Ù. ¶Ç, º¸´Ù »óÀ§¿¡ ÀÖ´Â »ùÇÃÄ¡ÀÇ ÀÓÀÇÀÇ ºñÆ®¿¡ ´ëÇØ¼´Â ¸ðµÎ 0 ÀÌ´Ù°í º¸¿©Áý´Ï´Ù. µû¶ó¼, »ùÇÃÄ¡ÀÇ ¹üÀ§´Â 0 ~ 2n - 1 ÀÌ µË´Ï´Ù. ÀÌ Å¬·¡½º´Â ÀÌ·¯ÇÑ »ùÇÃÄ¡¸¦ Ç¥ÁØÈ µÈ »ö¼ººÐÄ¡¿¡ ¸Ê ÇϹǷΠ0 Àº ColorSpace
Ŭ·¡½ºÀÇ getMinValue
¸Þ¼µå·ÎºÎÅÍ ÃëµæÇÑ °ª¿¡ ¸Ê µÇ¾î 2n - 1 Àº getMaxValue
¸Þ¼µå·ÎºÎÅÍ ÃëµæÇÑ °ª¿¡ ¸Ê µË´Ï´Ù. ´Ù¸¥ Ä÷¯ »ùÇÃÀÇ ¸ÅÇÎÀÇ ComponentColorModel
À» ÀÛ¼ºÇÏ·Á¸é,
ÀÌ Å¬·¡½ºÀÇ »ó¼ÓÇØ, getNormalizedComponents(Object, float[], int)
¸Þ¼µå¸¦ ¿À¹ö¶óÀ̵å(override) ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. ¾ËÆÄ »ùÇÃÀÇ °æ¿ì, Ç×»ó 0 ÀÌ 0.0 ¿¡
2n - 1 ÀÌ 1.0¿¡ ¸Ê µË´Ï´Ù.
ºÎÈ£ ¾øÀ½ »ùÇÃÄ¡¸¦ °¡Áö´Â ÀνºÅϽº¿¡¼´Â ´ÙÀ½ÀÇ 2°³ÀÇ Á¶°ÇÀÌ Ã¤¿öÁö´Â °æ¿ì¿¡°Ô¸¸, Ç¥ÁØÈµÇ¾î ÀÖÁö ¾ÊÀº »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐ Ç¥ÇöÀÌ Áö¿øµË´Ï´Ù. 1°³´Â »ùÇÃÄ¡ 0 ÀÌ Ç¥ÁØÈ ¼ººÐÄ¡ 0.0¿¡ ¸Ê µÇ¾î »ùÇÃÄ¡ 2n - 1 ÀÌ 1.0¿¡ ¸Ê µÇ´Â °ÍÀÔ´Ï´Ù. ÀÌÁ¦(À̹Ì
) 1°³´Â ColorSpace
¸ðµç »ö¼ººÐÀÇ ÃÖ¼Ò/ÃÖ´ë ¹üÀ§°¡ 0.0 ~ 1.0 ÀÎ °ÍÀÔ´Ï´Ù. ÀÌ °æ¿ì
¼ººÐ Ç¥ÇöÀº ´ëÀÀÇÏ´Â »ùÇÃÀÇ ÃÖÇÏÁ¤µµ n ºñÆ®°¡ µË´Ï´Ù. µû¶ó¼, °¢ ¼ººÐÀº 0 À¸·Î 2n - 1
»çÀÌÀÇ ºÎÈ£ ¾øÀ½ Á¤¼ö°ª
ÀÔ´Ï´Ù. ÀÌ ¶§ n´Â
ƯÁ¤ÀÇ ¼ººÐÀÇ À¯È¿ ºñÆ®¼öÀÔ´Ï´Ù. ÀÌ·¯ÇÑ Á¶°ÇÀÌ Ã¤¿öÁöÁö ¾ÊÀº °æ¿ì´Â ºñÇ¥ÁØÈ ¼ººÐÀÇ Àμö¸¦ ÃëÇÏ´Â ÀÓÀÇÀÇ ¸Þ¼µå°¡ IllegalArgumentException
À»
Throw ÇÕ´Ï´Ù.
Àü¼ÛÇü DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
¹× DataBuffer.TYPE_DOUBLE
·Î ÀÛ¼ºµÈ ComponentColorModel
ÀνºÅϽº´Â ºÎÈ£ ÷ºÎ short, float, ¶Ç´Â double °ªÀ¸·Î
´Ù·ç¾îÁö´Â Çȼ¿ »ùÇÃÄ¡¸¦ º¸°ü À¯ÁöÇÕ´Ï´Ù. ÀÌ·¯ÇÑ ÀνºÅϽº´Â Ç¥ÁØÈµÇ¾î ÀÖÁö ¾ÊÀº »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐ Ç¥ÇöÀ» Áö¿øÇÏÁö ¾Ê±â ¶§¹®¿¡
ÀνºÅϽº¸¦ È£ÃâÇϸé, Àμö¿¡ ÀÌ·¯ÇÑ Ç¥ÇöÀ» ÃëÇÏ´Â ¸Þ¼µå´Â IllegalArgumentException
À»
Throw ÇÕ´Ï´Ù. ÀÌ Å¬·¡½ºÀÇ ÀνºÅϽºÀÇ Ç¥ÁØÈ ¼ººÐÄ¡´Â ´ÙÀ½ÀÇ Àü¼ÛÇü¿¡ ´ëÀÀÇÑ ¹üÀ§¸¦ °¡Áý´Ï´Ù. float »ùÇÃÀº float µ¥ÀÌÅÍÇüÀÇ Àü¹üÀ§, double »ùÇÃÀº float µ¥ÀÌÅÍÇüÀÇ Àü¹üÀ§ (double¸¦ float¿¡ ij½ºÆ® ÇÑ °á°ú), short »ùÇÃÀº °ÅÀÇ -maxVal ~ +maxVal ÀÔ´Ï´Ù. maxVal´Â ColorSpace
¼ººÐ ±ÙóÀÇ ÃÖ´ë°ª
ÀÔ´Ï´Ù (-32767°¡ -maxVal ¿¡
0 ÀÌ 0.0 ¿¡
32767 ÀÌ +maxVal¿¡ ¸Ê µË´Ï´Ù). ¼ºê Ŭ·¡½º´Â getNormalizedComponents(Object, float[], int)
¸Þ¼µå¸¦ ¿À¹ö¶óÀ̵å(override) ÇÏ´Â °ÍÀ¸·Î½á, short »ùÇÃÄ¡ÀÇ Ç¥ÁØÈ ¼ººÐ°ªÀÇ ½½Ä¶¸µÀ» ¿À¹ö¶óÀ̵å(override) ÇÏ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù. float »ùÇðú double »ùÇÿ¡ ´ëÇØ¼´Â Ç¥ÁØÈ ¼ººÐ°ªÀÌ ´ëÀÀÇÏ´Â »ùÇÃÄ¡¿Í µ¿ÀÏÇØÁ®, ¼ºê Ŭ·¡½º´Â ÀÌ·¯ÇÑ Àü¼ÛÇüÀÇ ¾î´À ºñÇ׵ȯ½½Ä¶¸µµµ Ãß°¡ÇÏÁö ¾Ê½À´Ï´Ù.
Àü¼ÛÇü DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
¹× DataBuffer.TYPE_DOUBLE
·Î ÀÛ¼ºµÈ ComponentColorModel
ÀνºÅϽº´Â ¸ðµç »ùÇÃÄ¡ÀÇ ¸ðµç ºñÆ®¸¦ »ç¿ëÇÕ´Ï´Ù. µû¶ó¼, ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀº, DataBuffer.TYPE_SHORT
ÀÎ °æ¿ì´Â 16 ºñÆ®, DataBuffer.TYPE_FLOAT
ÀÎ °æ¿ì´Â 32 ºñÆ®, DataBuffer.TYPE_DOUBLE
ÀÎ °æ¿ì´Â 64 ºñÆ®¸¦ º¸°ü À¯ÁöÇÕ´Ï´Ù. ComponentColorModel(ColorSpace, int[], boolean, boolean, int, int)
Çü½ÄÀÇ »ý¼ºÀÚ°¡ ÀÌ·¯ÇÑ Àü¼ÛÇüÀ¸·Î »ç¿ëµÇ´Â °æ¿ì, ºñÆ® ¹è¿ Àμö´Â ¹«½ÃµË´Ï´Ù.
Ä÷¯ »ùÇÃÄ¡¿Í ¾ËÆÄ »ùÇðªÀÌ ·»´õ¸µ ÇÏ´Â ¼ººÐ°ªÀ¸·Î
ÀûÀýÈ÷ ÇØ¼®µÇÁö ¾Ê´Â °Íµµ ÀÖ½À´Ï´Ù. À̰ÍÀº, ComponentColorModel
ÀÌ, ºÎÈ£ ¾øÀ½ »ùÇÃÄ¡ÀÇ Ç¥ÁØÈ µÈ »ö¼ººÐ°ªÀÇ ¸ÅÇÎÀ» ¿À¹ö¶óÀ̵å(override) Çϱâ À§ÇÑ(ÇØ) »ó¼Ó µÇ°í ÀÖ´ÂÁö, ƯÁ¤ÀÇ ¹üÀ§¿ÜÀÇ ºÎÈ£ ÷ºÎ »ùÇðªÀÌ »ç¿ëµÇ°í ÀÖ´Â °æ¿ì¿¡ ÀϾ´Ï´Ù. ¿¹¸¦ µé¾î
¾ËÆÄ ¼ººÐÀ» 0 ~ 32767
¹üÀ§¿¡ ¾ø´Â ºÎÈ£ ÷ºÎ short°ª, Ç¥ÁØÈ ¹üÀ§ 0.0 ~ 1.0 À¸·Î¼ ÁöÁ¤Çϸé, ¿¹±âÄ¡ ¾ÊÀº °á°ú°¡ µË´Ï´Ù. »ö¼ººÐÀÌ ColorSpace
Ç¥ÁØÈ ¹üÀ§ (ColorSpace
Ŭ·¡½ºÀÇ getMinValue
¸Þ¼µå¿Í getMaxValue
¸Þ¼µå¸¦ »ç¿ëÇØ Ãëµæ) ³»¿¡ ÀÖ¾î, ¾ËÆÄ ¼ººÐÀÌ 0.0 ~ 1.0 À̵µ·Ï, ·»´õ¸µÀÇ Àü¿¡ ¾îÇø®ÄÉÀ̼ÇÃø¿¡¼ Çȼ¿ µ¥ÀÌÅ͸¦ ÀûÀýÈ÷ ½½Ä¶¸µ ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. »ö¼ººÐÄ¡ ¶Ç´Â ¾ËÆÄ ¼ººÐ°ªÀÌ ¹üÀ§¿Ü¿¡ ÀÖ´Â °æ¿ì¿¡´Â ·»´õ¸µ °á°ú¸¦ È®Á¤ÇÒ ¼ö ¾ø½À´Ï´Ù.
ComponentColorModel
¼ººÐ¼ö°¡ 1 À¸·Î ÄÄÆÛ³ÍÆ®°ªÀÌ ºÎÈ£ ¾øÀ½ (Áï, Àü¼ÛÇü DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, ¶Ç´Â DataBuffer.TYPE_INT
¸¦ »ç¿ëÇÏ´Â ´ÜÀÏÀÇ »ö¼ººÐ¸¸À¸·Î ¾ËÆÄ ¼ººÐÀÌ ¾ø´Ù) ÀÌ¿ÜÀÇ °æ¿ì, ´ÜÀÏÀÇ int Çȼ¿ Ç¥ÇöÀ» »ç¿ëÇÏ´Â ¸Þ¼µå´Â IllegalArgumentException
¸¦ Throw ÇÕ´Ï´Ù.
ComponentColorModel
˼, ComponentSampleModel
, BandedSampleModel
, ¶Ç´Â PixelInterleavedSampleModel
¿Í
Á¶ÇÕÇØ, BufferedImage
ÀÛ¼º¿¡ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù.
ColorModel
,
ColorSpace
,
ComponentSampleModel
,
BandedSampleModel
,
PixelInterleavedSampleModel
,
BufferedImage
ÇÊµå °³¿ä |
---|
Ŭ·¡½º java.awt.image. ColorModel ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
pixel_bits,
transferType |
ÀÎÅÍÆäÀ̽º java.awt. Transparency ·ÎºÎÅÍ »ó¼ÓµÈ Çʵå |
---|
BITMASK,
OPAQUE,
TRANSLUCENT |
»ý¼ºÀÚ °³¿ä | |
---|---|
ComponentColorModel (ColorSpace colorSpace,
boolean hasAlpha,
boolean isAlphaPremultiplied,
int transparency,
int transferType)
ÁöÁ¤µÈ ÆÄ¶ó¹ÌÅͷκÎÅÍ, ComponentColorModel ¸¦ ±¸ÃàÇÕ´Ï´Ù. |
|
ComponentColorModel (ColorSpace colorSpace,
int[] bits,
boolean hasAlpha,
boolean isAlphaPremultiplied,
int transparency,
int transferType)
ÁöÁ¤µÈ ÆÄ¶ó¹ÌÅͷκÎÅÍ, ComponentColorModel ¸¦ ±¸ÃàÇÕ´Ï´Ù. |
¸Þ¼µå °³¿ä | |
---|---|
ColorModel |
coerceData (WritableRaster raster,
boolean isAlphaPremultiplied)
¶ó½ºÅÍ µ¥ÀÌÅͰ¡ isAlphaPremultiplied º¯¼ö·Î ÁöÁ¤µÈ »óÅÂ¿Í ÀÏÄ¡Çϵµ·Ï ÇÕ´Ï´Ù. |
SampleModel |
createCompatibleSampleModel (int w,
int h)
ÁöÁ¤µÈ³ÐÀÌ ¹× ³ôÀÌ·Î ÀÌ ColorModel ¿Í
ȣȯ¼ºÀÌ ÀÖ´Â µ¥ÀÌÅÍ ·¹À̾ƿôÀ» °¡Áö´Â SampleModel ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
WritableRaster |
createCompatibleWritableRaster (int w,
int h)
ÁöÁ¤µÈ³ÐÀÌ ¹× ³ôÀÌ·Î ÀÌ ColorModel ¿Í
ȣȯ¼ºÀÌ ÀÖ´Â µ¥ÀÌÅÍ ·¹À̾ƿô (SampleModel )À» °¡Áö´Â WritableRaster ¸¦ ÀÛ¼ºÇÕ´Ï´Ù. |
boolean |
equals (Object obj)
ÀÌ Ä÷¯ ¸ðµ¨°ú ´Ù¸¥ Ä÷¯ ¸ðµ¨ÀÌ µ¿ÀÏÇÑÁö ¾î¶²Áö¸¦ ºñ±³ÇÕ´Ï´Ù. |
int |
getAlpha (int pixel)
ÁöÁ¤µÈ Çȼ¿ÀÇ ¾ËÆÄ ¼ººÐÀ» 0 ~ 255 ¹üÀ§¿¡¼ ½½Ä¶¸µÀÇÇØ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getAlpha (Object inData)
ÁöÁ¤µÈ Çȼ¿ÀÇ ¾ËÆÄ ¼ººÐÀ» 0 ~ 255 ¹üÀ§¿¡¼ ½½Ä¶¸µÀÇÇØ ¸®ÅÏÇÕ´Ï´Ù. |
WritableRaster |
getAlphaRaster (WritableRaster raster)
À̹ÌÁöÀÇ ¾ËÆÄ ä³ÎÀ» Ç¥ÇöÇÏ´Â Raster ¸¦, ÀÔ·ÂµÈ Raster ·ÎºÎÅÍ ÃßÃâÇØ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getBlue (int pixel)
ÁöÁ¤µÈ Çȼ¿ÀÇ ÆÄ¶û ¼ººÐÀ» µðÆúÆ®ÀÇ RGB ColorSpace (sRGB)·Î 0 ~ 255 ¹üÀ§¿¡¼ ½½Ä¶¸µÀÇÇØ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getBlue (Object inData)
ÁöÁ¤µÈ Çȼ¿ÀÇ Ã»»ö ¼ººÐÀ» µðÆúÆ®ÀÇ RGB ColorSpace (sRGB)·Î 0 ~ 255
¹üÀ§¿¡¼ ½½Ä¶¸µÀÇÇØ ¸®ÅÏÇÕ´Ï´Ù. |
int[] |
getComponents (int pixel,
int[] components,
int offset)
ÀÌ ColorModel
Çȼ¿À» ÁöÁ¤ÇØ, Ç¥ÁØÈµÇ¾î ÀÖÁö ¾ÊÀº »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀÇ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù. |
int[] |
getComponents (Object pixel,
int[] components,
int offset)
ÀÌ ColorModel
Çȼ¿À» ÁöÁ¤ÇØ, Ç¥ÁØÈµÇ¾î ÀÖÁö ¾ÊÀº »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀÇ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù. |
int |
getDataElement (float[] normComponents,
int normOffset)
Ç¥ÁØÈµÇ¾î ÀÖÁö ¾ÊÀº »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀÇ ¹è¿À» ÁöÁ¤ÇØ, ÀÌ ColorModel ¿¡ int ·Î
¼ ³ªÅ¸³»Áö´Â Çȼ¿Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getDataElement (int[] components,
int offset)
ºñÁ¤±ÔÈµÈ »ö¼ººÐ ȤÀº ¾ËÆÄ ¼ººÐÀÇ ¹è¿À» ÁöÁ¤ÇØ, ÀÌ ColorModel
int ·Î¼ Ç¥ÇöµÇ´Â Çȼ¿Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
Object |
getDataElements (float[] normComponents,
int normOffset,
Object obj)
Ç¥ÁØÈ»ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀÇ ¹è¿À» ÁöÁ¤ÇØ, ÀÌ ColorModel
Çȼ¿ÀÇ µ¥ÀÌÅÍ ¿ä¼Ò ¹è¿ Ç¥ÇöÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Object |
getDataElements (int[] components,
int offset,
Object obj)
ºñÁ¤±ÔÈµÈ »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀÇ ¹è¿À» ÁöÁ¤ÇØ, ÀÌ ColorModel
Çȼ¿ÀÇ µ¥ÀÌÅÍ ¿ä¼Ò ¹è¿ Ç¥ÇöÀ» ¸®ÅÏÇÕ´Ï´Ù. |
Object |
getDataElements (int rgb,
Object pixel)
µðÆúÆ®ÀÇ RGB Ä÷¯ ¸ðµ¨ÀÇ int Çȼ¿ Ç¥ÇöÀ» ÁöÁ¤ÇØ, ÀÌ ColorModel
Çȼ¿ µ¥ÀÌÅÍ ¿ä¼Ò ¹è¿ Ç¥ÇöÀ» ¸®ÅÏÇÕ´Ï´Ù. |
int |
getGreen (int pixel)
ÁöÁ¤µÈ Çȼ¿ÀÇ ÃÊ·Ï ¼ººÐÀ» µðÆúÆ®ÀÇ RGB ColorSpace (sRGB)·Î 0 ~ 255 ¹üÀ§¿¡¼ ½½Ä¶¸µÀÇÇØ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getGreen (Object inData)
ÁöÁ¤µÈ Çȼ¿ÀÇ ³ì»ö ¼ººÐÀ» µðÆúÆ®ÀÇ RGB ColorSpace (sRGB)·Î 0 ~ 255
¹üÀ§¿¡¼ ½½Ä¶¸µÀÇÇØ ¸®ÅÏÇÕ´Ï´Ù. |
float[] |
getNormalizedComponents (int[] components,
int offset,
float[] normComponents,
int normOffset)
Ç¥ÁØÈ ¼ººÐ ¹è¿À» ÁöÁ¤ÇØ, ºñÇ¥ÁØÈ Çü½Ä¿¡¼ ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀÇ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù. |
float[] |
getNormalizedComponents (Object pixel,
float[] normComponents,
int normOffset)
ÀÌ ColorModel
ÁöÁ¤µÈ Çȼ¿¿¡ ´ëÇØ, Ç¥ÁØÈ Çü½Ä¿¡¼ »ö¼ººÐ°ú ¾ËÆÄ ¼ººÐÀÇ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù. |
int |
getRed (int pixel)
ÁöÁ¤µÈ Çȼ¿ÀÇ »¡° ¼ººÐÀ» µðÆúÆ®ÀÇ RGB ColorSpace (sRGB)·Î 0 ~ 255 ¹üÀ§¿¡¼ ½½Ä¶¸µÀÇÇØ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getRed (Object inData)
ÁöÁ¤µÈ Çȼ¿ÀÇ Àû»ö ¼ººÐÀ» µðÆúÆ®ÀÇ RGB ColorSpace (sRGB)·Î 0 ~ 255 ¹üÀ§¿¡¼ ½½Ä¶¸µÀÇÇØ ¸®ÅÏÇÕ´Ï´Ù. |
int |
getRGB (int pixel)
µðÆúÆ®ÀÇ RGB Ä÷¯ ¸ðµ¨ Çü½Ä¿¡¼ Çȼ¿ÀÇ »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀ» ¸®ÅÏÇÕ´Ï´Ù. |
int |
getRGB (Object inData)
µðÆúÆ®ÀÇ RGB Ä÷¯ ¸ðµ¨ Çü½Ä¿¡¼ Çȼ¿ÀÇ »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀ» ¸®ÅÏÇÕ´Ï´Ù. |
int[] |
getUnnormalizedComponents (float[] normComponents,
int normOffset,
int[] components,
int offset)
Ç¥ÁØÈ ¼ººÐ ¹è¿À» ÁöÁ¤ÇØ, ºñÇ¥ÁØÈ Çü½Ä¿¡¼ ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀÇ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isCompatibleRaster (Raster raster)
raster °¡ ÀÌ ColorModel ¿Í
ȣȯ¼ºÀÌ ÀÖ´Â °æ¿ì¿¡ true¸¦ µ¹·ÁÁÖ°í, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false¸¦ ¸®ÅÏÇÕ´Ï´Ù. |
boolean |
isCompatibleSampleModel (SampleModel sm)
ÁöÁ¤µÈ SampleModel °¡ ÀÌ ColorModel ¿Í
ȣȯ¼ºÀÌ ÀÖÀ»Áö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù. |
Ŭ·¡½º java.awt.image. ColorModel ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
finalize,
getColorSpace,
getComponentSize,
getComponentSize,
getNumColorComponents,
getNumComponents,
getPixelSize,
getRGBdefault,
getTransferType,
getTransparency,
hasAlpha,
hashCode,
isAlphaPremultiplied,
toString |
Ŭ·¡½º java.lang. Object ·ÎºÎÅÍ »ó¼ÓµÈ ¸Þ¼µå |
---|
clone,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
»ý¼ºÀÚ »ó¼¼ |
---|
public ComponentColorModel(ColorSpace colorSpace, int[] bits, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType)
ComponentColorModel
¸¦ ±¸ÃàÇÕ´Ï´Ù. »ö¼ººÐÀº ÁöÁ¤µÈ ColorSpace
³»°¡ µË´Ï´Ù. Áö¿øµÇ´Â Àü¼ÛÇüÀº, DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
, DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
¹× DataBuffer.TYPE_DOUBLE
ÀÔ´Ï´Ù. nullÀÌ ¾Æ´Ñ °æ¿ì, bits
¹è¿Àº »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐ¸¶´ÙÀÇ À¯È¿ ºñÆ®¼ö¸¦ ÁöÁ¤ÇÕ´Ï´Ù. Çȼ¿Ä¡¿¡ ¾ËÆÄ Á¤º¸°¡ ¾ø´Â °æ¿ì, ¹è¿ÀÇ ±æÀÌ´Â Àû¾îµµ ColorSpace
¿¡ ÀÖ´Â ¼ººÐ¼ö°¡ µÇ¾î, ¾ËÆÄ Á¤º¸°¡ ÀÖ´Â °æ¿ì´Â ¼ººÐ¼öº¸´Ù 1 Ä¿Áý´Ï´Ù. transferType
°¡ DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
, ¶Ç´Â DataBuffer.TYPE_DOUBLE
ÀÎ °æ¿ì, bits
¹è¿ Àμö´Â ¹«½ÃµË´Ï´Ù. hasAlpha
´Â
¾ËÆÄ Á¤º¸ÀÇ À¯¹«¸¦ ³ªÅ¸³À´Ï´Ù. hasAlpha
°¡ trueÀÎ °æ¿ì, boolean ÇüÀÇ isAlphaPremultiplied
´Â
Çȼ¿Ä¡¿¡ ÀÖ´Â Ä÷¯ »ùÇà ¹× ¾ËÆÄ »ùÇÃÀ» Æò°¡ÇÏ´Â ¹æ¹ýÀ» ÁöÁ¤ÇÕ´Ï´Ù. boolean°¡ trueÀÎ °æ¿ì´Â Ä÷¯ »ùÇÃÀº ¾ËÆÄ »ùÇðú °ö¼ÀµÇ¾ú´Ù°í º¸¿©Áý´Ï´Ù. transparency
´Â
ÀÌ Ä÷¯ ¸ðµ¨·Î Ç¥ÇöÇÒ ¼ö ÀÖ´Â ¾ËÆÄ°ªÀ» ÁöÁ¤ÇÕ´Ï´Ù. Çã¿ë µÇ´Â transparency
°ªÀº
OPAQUE
, BITMASK
, ¶Ç´Â TRANSLUCENT
ÀÔ´Ï´Ù. transferType
´Â
Çȼ¿Ä¡¸¦ Ç¥ÇöÇϱâ À§Çؼ »ç¿ëÇÏ´Â ¿ø½ÃÀû ¹è¿ÀÇ ÇüÅÂÀÔ´Ï´Ù.
colorSpace
- ÀÌ Ä÷¯ ¸ðµ¨¿¡ °ü·ÃÇÑ ColorSpace
bits
- ¼ººÐ¸¶´ÙÀÇ À¯È¿ ºñÆ®¼ö. nullÀÎ °æ¿ì, ¸ðµç ¼ººÐ »ùÇÃÀÇ ¸ðµç ºñÆ®°¡ À¯È¿ÇÏ°Ô µÈ´Ù. transferType°¡ DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
, ¶Ç´Â DataBuffer.TYPE_DOUBLE
ÀÎ °æ¿ì´Â ¹«½ÃµÇ¾î ¸ðµç ¼ººÐ »ùÇÃÀÇ ¸ðµç ºñÆ®°¡ À¯È¿ÇÏ°Ô µÇ´ÂhasAlpha
- trueÀÎ °æ¿ì, ÀÌ Ä÷¯ ¸ðµ¨Àº ¾ËÆÄ¸¦ Áö¿øÇÏ´ÂisAlphaPremultiplied
- trueÀÎ °æ¿ì, ¾ËÆÄ´Â ¹Ì¸® °ö¼ÀµÇ°í ÀÖ´Âtransparency
- ÀÌ Ä÷¯ ¸ðµ¨·Î Ç¥Çö °¡´ÉÇÑ ¾ËÆÄ°ªÀ» ÁöÁ¤ÇÏ´ÂtransferType
- Çȼ¿Ä¡ÀÇ Ç¥Çö¿¡ »ç¿ëÇÏ´Â ¿ø½ÃÀû ¹è¿ÀÇ ÇüŸ¦ ÁöÁ¤ÇÑ´Ù
IllegalArgumentException
- bits
¹è¿ Àμö°¡ nullÀÌ ¾Æ´Ñ °æ¿ì, ±× ±æÀÌ´Â »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐº¸´Ù ÀÛ°í, Àü¼ÛÇüÀº DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, ¶Ç´Â DataBuffer.TYPE_INT
IllegalArgumentException
- transferType °¡DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
, DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
, DataBuffer.TYPE_DOUBLE
¾î¶² °Íµµ ¾Æ´Ñ °æ¿ìColorSpace
,
Transparency
public ComponentColorModel(ColorSpace colorSpace, boolean hasAlpha, boolean isAlphaPremultiplied, int transparency, int transferType)
ComponentColorModel
¸¦ ±¸ÃàÇÕ´Ï´Ù. »ö¼ººÐÀº ÁöÁ¤µÈ ColorSpace
³»°¡ µË´Ï´Ù. Áö¿øµÇ´Â Àü¼ÛÇüÀº, DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
, DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
¹× DataBuffer.TYPE_DOUBLE
ÀÔ´Ï´Ù. »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐ¸¶´ÙÀÇ À¯È¿ ºñÆ®¼ö´Â °¢°¢ 8, 16, 32, 16, 32, 64 ÀÔ´Ï´Ù. »ö¼ººÐ¼ö´Â ColorSpace
¿¡ ÀÖ´Â ¼ººÐ¼ö°¡ µË´Ï´Ù. hasAlpha
°¡ trueÀÎ °æ¿ì, ¾ËÆÄ ¼ººÐÀÌ ÀÖ½À´Ï´Ù. hasAlpha
°¡ trueÀÎ °æ¿ì, boolean ÇüÀÇ isAlphaPremultiplied
´Â
Çȼ¿Ä¡¿¡ ÀÖ´Â Ä÷¯ »ùÇà ¹× ¾ËÆÄ »ùÇÃÀ» Æò°¡ÇÏ´Â ¹æ¹ýÀ» ÁöÁ¤ÇÕ´Ï´Ù. boolean°¡ trueÀÎ °æ¿ì´Â Ä÷¯ »ùÇÃÀº ¾ËÆÄ »ùÇðú °ö¼ÀµÇ¾ú´Ù°í º¸¿©Áý´Ï´Ù. transparency
´Â
ÀÌ Ä÷¯ ¸ðµ¨·Î Ç¥ÇöÇÒ ¼ö ÀÖ´Â ¾ËÆÄ°ªÀ» ÁöÁ¤ÇÕ´Ï´Ù. Çã¿ë µÇ´Â transparency
°ªÀº
OPAQUE
, BITMASK
, ¶Ç´Â TRANSLUCENT
ÀÔ´Ï´Ù. transferType
´Â
Çȼ¿Ä¡ÀÇ Ç¥Çö¿¡ »ç¿ëÇÏ´Â ¿ø½ÃÀû ¹è¿ÀÇ ÇüÅÂÀÔ´Ï´Ù.
colorSpace
- ÀÌ Ä÷¯ ¸ðµ¨¿¡ °ü·ÃÇÑ ColorSpace
hasAlpha
- trueÀÎ °æ¿ì, ÀÌ Ä÷¯ ¸ðµ¨Àº ¾ËÆÄ¸¦ Áö¿øÇÏ´ÂisAlphaPremultiplied
- trueÀÎ °æ¿ì, ¾ËÆÄ´Â ¹Ì¸® °ö¼ÀµÇ°í ÀÖ´Âtransparency
- ÀÌ Ä÷¯ ¸ðµ¨·Î Ç¥Çö °¡´ÉÇÑ ¾ËÆÄ°ªÀ» ÁöÁ¤ÇÏ´ÂtransferType
- Çȼ¿Ä¡ÀÇ Ç¥Çö¿¡ »ç¿ëÇÏ´Â ¿ø½ÃÀû ¹è¿ÀÇ ÇüŸ¦ ÁöÁ¤ÇÑ´Ù
IllegalArgumentException
- transferType °¡DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
, DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
, DataBuffer.TYPE_DOUBLE
¾î¶² °Íµµ ¾Æ´Ñ °æ¿ìColorSpace
,
Transparency
¸Þ¼µåÀÇ »ó¼¼ |
---|
public int getRed(int pixel)
ColorModel
³»ÀÇ getRed
pixel
- Àû»ö ¼ººÐÀ» ¾ò´Â Çȼ¿
IllegalArgumentException
- ÀÌ ColorModel
¿¡ 2°³
ÀÌ»óÀÇ ¼ººÐÀÌ ÀÖ´Â °æ¿ì
IllegalArgumentException
- ÀÌ ColorModel
¼ººÐ°ªÀÌ ºÎÈ£ ÷ºÎÀÇ °æ¿ìpublic int getGreen(int pixel)
ColorModel
³»ÀÇ getGreen
pixel
- ³ì»ö ¼ººÐÀ» ¾ò´Â Çȼ¿
IllegalArgumentException
- ÀÌ ColorModel
¿¡ 2°³
ÀÌ»óÀÇ ¼ººÐÀÌ ÀÖ´Â °æ¿ì
IllegalArgumentException
- ÀÌ ColorModel
¼ººÐ°ªÀÌ ºÎÈ£ ÷ºÎÀÇ °æ¿ìpublic int getBlue(int pixel)
ColorModel
³»ÀÇ getBlue
pixel
- û»ö ¼ººÐÀ» ¾ò´Â Çȼ¿
IllegalArgumentException
- ÀÌ ColorModel
¿¡ 2°³
ÀÌ»óÀÇ ¼ººÐÀÌ ÀÖ´Â °æ¿ì
IllegalArgumentException
- ÀÌ ColorModel
¼ººÐ°ªÀÌ ºÎÈ£ ÷ºÎÀÇ °æ¿ìpublic int getAlpha(int pixel)
ColorModel
³»ÀÇ getAlpha
pixel
- ¾ËÆÄ ¼ººÐÀ» ¾ò´Â Çȼ¿
IllegalArgumentException
- ÀÌ ColorModel
¿¡ 2°³
ÀÌ»óÀÇ ¼ººÐÀÌ ÀÖ´Â °æ¿ì
IllegalArgumentException
- ÀÌ ColorModel
¼ººÐ°ªÀÌ ºÎÈ£ ÷ºÎÀÇ °æ¿ìpublic int getRGB(int pixel)
ColorModel
³»ÀÇ getRGB
pixel
- »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀ» ¾ò´Â Çȼ¿
IllegalArgumentException
- ÀÌ ColorModel
¿¡ 2°³
ÀÌ»óÀÇ ¼ººÐÀÌ ÀÖ´Â °æ¿ì
IllegalArgumentException
- ÀÌ ColorModel
¼ººÐ°ªÀÌ ºÎÈ£ ÷ºÎÀÇ °æ¿ìColorModel.getRGBdefault()
public int getRed(Object inData)
pixel
Ä¡´Â °´Ã¼ ÂüÁ¶·Î¼ °Ç³×¹ÞÀº transferType
ÇüÀÇ µ¥ÀÌÅÍ ¿ä¼Ò·ÎºÎÅÍ µÇ´Â ¹è¿¿¡ ÀÇÇØ ÁöÁ¤µË´Ï´Ù. ¹Ýȯ°ªÀº ¹Ì¸® °ö¼ÀµÇ¾î ÀÖÁö ¾ÊÀº °ªÀÔ´Ï´Ù. ¾ËÆÄ°¡ ¹Ì¸® °ö¼ÀµÇ°í ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼µå´Â °ªÀ» µ¹·ÁÁÖ±â Àü¿¡ ¾ËÆÄ¸¦ Á¦»êÇÕ´Ï´Ù. ¾ËÆÄ°ªÀÌ
0ÀÎ °æ¿ì, »¡°ÀÇ °ªÀº 0 ÀÌ µË´Ï´Ù. ComponentColorModel
´Â »ó¼ÓÇÒ ¼ö Àֱ⠶§¹®¿¡
¼ºê Ŭ·¡½º°¡ ÀÌ ¸Þ¼µåÀÇ ±¸ÇöÀ» »ó¼ÓÇÕ´Ï´Ù¸¸, ¼ºê Ŭ·¡½º°¡ ±× ±¸ÇöÀ» ¿À¹ö¶óÀ̵å(override) ÇÏÁö ¾Ê°í, °Ô´Ù°¡ Áö¿øµÇ¾î ÀÖÁö ¾ÊÀº transferType
¸¦ »ç¿ëÇßÀ» °æ¿ì, ¿¹¿Ü°¡ ¹ß»ý µË´Ï´Ù.
ColorModel
³»ÀÇ getRed
inData
- Àû»ö ¼ººÐÀ» ¾ò´Â Çȼ¿. transferType
ÇüÀÇ µ¥ÀÌÅÍ ¿ä¼ÒÀÇ ¹è¿·Î ÁöÁ¤ÇÑ´Ù
ClassCastException
- inData
°¡ transferType
ÇüÀÇ ¿ø½ÃÀû ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì
ArrayIndexOutOfBoundsException
- inData
°¡ ÀÌ ColorModel
Çȼ¿Ä¡¸¦ º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì
UnsupportedOperationException
- ÀÌ ComponentColorModel
Àü¼ÛÇüÀÌ, Áö¿øµÇ°í ÀÖ´Â Àü¼ÛÇü (DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
, DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
, DataBuffer.TYPE_DOUBLE
)ÀÇ ¸ÓÁö¾Ê¾Æµµ ¾Æ´Ñ °æ¿ìpublic int getGreen(Object inData)
ColorSpace
(sRGB)·Î 0 ~ 255
¹üÀ§¿¡¼ ½½Ä¶¸µÀÇÇØ ¸®ÅÏÇÕ´Ï´Ù. ÇÊ¿äÇÑ °æ¿ì´Â »öº¯È¯À» ÇÕ´Ï´Ù. pixel
Ä¡´Â °´Ã¼ ÂüÁ¶·Î¼ °Ç³×¹ÞÀº transferType
ÇüÀÇ µ¥ÀÌÅÍ ¿ä¼Ò·ÎºÎÅÍ µÇ´Â ¹è¿¿¡ ÀÇÇØ ÁöÁ¤µË´Ï´Ù. ¹Ýȯ°ªÀº ¹Ì¸® °ö¼ÀµÇ¾î ÀÖÁö ¾ÊÀº °ªÀÔ´Ï´Ù. ¾ËÆÄ°¡ ¹Ì¸® °ö¼ÀµÇ°í ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼µå´Â °ªÀ» µ¹·ÁÁÖ±â Àü¿¡ ¾ËÆÄ¸¦ Á¦»êÇÕ´Ï´Ù. ¾ËÆÄ°ªÀÌ
0ÀÎ °æ¿ì, ÃÊ·ÏÀÇ °ªÀº 0 ÀÌ µË´Ï´Ù. ComponentColorModel
´Â »ó¼ÓÇÒ ¼ö Àֱ⠶§¹®¿¡
¼ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼µåÀÇ ±¸ÇöÀ» »ó¼ÓÇÕ´Ï´Ù¸¸, ¼ºê Ŭ·¡½º°¡ ±× ±¸ÇöÀ» ¿À¹ö¶óÀ̵å(override) ÇÏÁö ¾Ê°í, °Ô´Ù°¡ Áö¿øµÇ¾î ÀÖÁö ¾ÊÀº transferType
¸¦ »ç¿ëÇßÀ» °æ¿ì, ¿¹¿Ü°¡ ¹ß»ý µË´Ï´Ù.
ColorModel
³»ÀÇ getGreen
inData
- ³ì»ö ¼ººÐÀ» ¾ò´Â Çȼ¿. transferType
ÇüÀÇ µ¥ÀÌÅÍ ¿ä¼ÒÀÇ ¹è¿·Î ÁöÁ¤ÇÑ´Ù
ClassCastException
- inData
°¡ transferType
ÇüÀÇ ¿ø½ÃÀû ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì
ArrayIndexOutOfBoundsException
- inData
°¡ ÀÌ ColorModel
Çȼ¿Ä¡¸¦ º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì
UnsupportedOperationException
- ÀÌ ComponentColorModel
Àü¼ÛÇüÀÌ, Áö¿øµÇ°í ÀÖ´Â Àü¼ÛÇü (DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
, DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
, DataBuffer.TYPE_DOUBLE
)ÀÇ ¸ÓÁö¾Ê¾Æµµ ¾Æ´Ñ °æ¿ìpublic int getBlue(Object inData)
ColorSpace
(sRGB)·Î 0 ~ 255
¹üÀ§¿¡¼ ½½Ä¶¸µÀÇÇØ ¸®ÅÏÇÕ´Ï´Ù. ÇÊ¿äÇÑ °æ¿ì´Â »öº¯È¯À» ÇÕ´Ï´Ù. pixel
Ä¡´Â °´Ã¼ ÂüÁ¶·Î¼ °Ç³×¹ÞÀº transferType
ÇüÀÇ µ¥ÀÌÅÍ ¿ä¼Ò·ÎºÎÅÍ µÇ´Â ¹è¿¿¡ ÀÇÇØ ÁöÁ¤µË´Ï´Ù. ¹Ýȯ°ªÀº ¹Ì¸® °ö¼ÀµÇ¾î ÀÖÁö ¾ÊÀº °ªÀÔ´Ï´Ù. ¾ËÆÄ°¡ ¹Ì¸® °ö¼ÀµÇ°í ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼µå´Â °ªÀ» µ¹·ÁÁÖ±â Àü¿¡ ¾ËÆÄ¸¦ Á¦»êÇÕ´Ï´Ù. ¾ËÆÄ°ªÀÌ
0ÀÎ °æ¿ì, ÆÄ¶ûÀÇ °ªÀº 0 ÀÌ µË´Ï´Ù. ComponentColorModel
´Â »ó¼ÓÇÒ ¼ö Àֱ⠶§¹®¿¡
¼ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼µåÀÇ ±¸ÇöÀ» »ó¼ÓÇÕ´Ï´Ù¸¸, ¼ºê Ŭ·¡½º°¡ ±× ±¸ÇöÀ» ¿À¹ö¶óÀ̵å(override) ÇÏÁö ¾Ê°í, °Ô´Ù°¡ Áö¿øµÇ¾î ÀÖÁö ¾ÊÀº transferType
¸¦ »ç¿ëÇßÀ» °æ¿ì, ¿¹¿Ü°¡ ¹ß»ý µË´Ï´Ù.
ColorModel
³»ÀÇ getBlue
inData
- û»ö ¼ººÐÀ» ¾ò´Â Çȼ¿. transferType
ÇüÀÇ µ¥ÀÌÅÍ ¿ä¼ÒÀÇ ¹è¿·Î ÁöÁ¤ÇÑ´Ù
ClassCastException
- inData
°¡ transferType
ÇüÀÇ ¿ø½ÃÀû ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì
ArrayIndexOutOfBoundsException
- inData
°¡ ÀÌ ColorModel
Çȼ¿Ä¡¸¦ º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì
UnsupportedOperationException
- ÀÌ ComponentColorModel
Àü¼ÛÇüÀÌ, Áö¿øµÇ°í ÀÖ´Â Àü¼ÛÇü (DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
, DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
, DataBuffer.TYPE_DOUBLE
)ÀÇ ¸ÓÁö¾Ê¾Æµµ ¾Æ´Ñ °æ¿ìpublic int getAlpha(Object inData)
transferType
ÇüÀÇ µ¥ÀÌÅÍ ¿ä¼Ò·ÎºÎÅÍ µÇ´Â ¹è¿¿¡ ÀÇÇØ ÁöÁ¤µË´Ï´Ù. ComponentColorModel
´Â »ó¼ÓÇÒ ¼ö Àֱ⠶§¹®¿¡
¼ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼µåÀÇ ±¸ÇöÀ» »ó¼ÓÇÕ´Ï´Ù¸¸, ¼ºê Ŭ·¡½º°¡ ±× ±¸ÇöÀ» ¿À¹ö¶óÀ̵å(override) ÇÏÁö ¾Ê°í, °Ô´Ù°¡ Áö¿øµÇ¾î ÀÖÁö ¾ÊÀº transferType
¸¦ »ç¿ëÇßÀ» °æ¿ì, ¿¹¿Ü°¡ ¹ß»ý µË´Ï´Ù.
ColorModel
³»ÀÇ getAlpha
inData
- ¾ËÆÄ ¼ººÐÀ» ¾ò´Â Çȼ¿. transferType
ÇüÀÇ µ¥ÀÌÅÍ ¿ä¼ÒÀÇ ¹è¿·Î ÁöÁ¤ÇÑ´Ù
ClassCastException
- inData
°¡ transferType
ÇüÀÇ ¿ø½ÃÀû ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì
ArrayIndexOutOfBoundsException
- inData
°¡ ÀÌ ColorModel
Çȼ¿Ä¡¸¦ º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì
UnsupportedOperationException
- ÀÌ ComponentColorModel
Àü¼ÛÇüÀÌ, Áö¿øµÇ°í ÀÖ´Â Àü¼ÛÇü (DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
, DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
, DataBuffer.TYPE_DOUBLE
)ÀÇ ¸ÓÁö¾Ê¾Æµµ ¾Æ´Ñ °æ¿ìpublic int getRGB(Object inData)
transferType
ÇüÀÇ µ¥ÀÌÅÍ ¿ä¼Ò·ÎºÎÅÍ µÇ´Â ¹è¿¿¡ ÀÇÇØ ÁöÁ¤µË´Ï´Ù. ¹Ýȯ°ªÀº ¹Ì¸® °ö¼ÀµÇ¾î ÀÖÁö ¾ÊÀº °ªÀÔ´Ï´Ù. ¾ËÆÄ°¡ ¹Ì¸® °ö¼ÀµÇ°í ÀÖ¾úÀ» °æ¿ì, ÀÌ ¸Þ¼µå´Â »ö¼ººÐÀ¸·Î ¾ËÆÄ¸¦ Á¦»êÇÕ´Ï´Ù. ¾ËÆÄ°ªÀÌ
0ÀÎ °æ¿ì, Ä÷¯Ä¡´Â 0 ÀÌ µË´Ï´Ù. ComponentColorModel
´Â »ó¼ÓÇÒ ¼ö Àֱ⠶§¹®¿¡
¼ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼µåÀÇ ±¸ÇöÀ» »ó¼ÓÇÕ´Ï´Ù¸¸, ¼ºê Ŭ·¡½º°¡ ±× ±¸ÇöÀ» ¿À¹ö¶óÀ̵å(override) ÇÏÁö ¾Ê°í, °Ô´Ù°¡ Áö¿øµÇ¾î ÀÖÁö ¾ÊÀº transferType
¸¦ »ç¿ëÇßÀ» °æ¿ì, ¿¹¿Ü°¡ ¹ß»ý µË´Ï´Ù.
ColorModel
³»ÀÇ getRGB
inData
- »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀ» ¾ò´Â Çȼ¿. transferType
ÇüÀÇ µ¥ÀÌÅÍ ¿ä¼ÒÀÇ ¹è¿·Î ÁöÁ¤ÇÑ´Ù
ClassCastException
- inData
°¡ transferType
ÇüÀÇ ¿ø½ÃÀû ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì
ArrayIndexOutOfBoundsException
- inData
°¡ ÀÌ ColorModel
Çȼ¿Ä¡¸¦ º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì
UnsupportedOperationException
- ÀÌ ComponentColorModel
Àü¼ÛÇüÀÌ, Áö¿øµÇ°í ÀÖ´Â Àü¼ÛÇü (DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
, DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
, DataBuffer.TYPE_DOUBLE
)ÀÇ ¸ÓÁö¾Ê¾Æµµ ¾Æ´Ñ °æ¿ìColorModel.getRGBdefault()
public Object getDataElements(int rgb, Object pixel)
ColorModel
Çȼ¿ µ¥ÀÌÅÍ ¿ä¼Ò ¹è¿ Ç¥ÇöÀ» ¸®ÅÏÇÕ´Ï´Ù. ±× ÈÄ ÀÌ ¹è¿Àº, WritableRaster
°´Ã¼ÀÇ setDataElements
¸Þ¼µå¿¡ °Ç³×ÁÙ ¼ö°¡ ÀÖ½À´Ï´Ù. pixel
ÆÄ¶ó¹ÌÅͰ¡ null ÀÎ °æ¿ì´Â »õ·Î¿î ¹è¿À» ÇÒ´çÇÒ ¼ö ÀÖ½À´Ï´Ù. ComponentColorModel
´Â »ó¼ÓÇÒ ¼ö Àֱ⠶§¹®¿¡
¼ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼µåÀÇ ±¸ÇöÀ» »ó¼ÓÇÕ´Ï´Ù¸¸, ¼ºê Ŭ·¡½º°¡ ±× ±¸ÇöÀ» ¿À¹ö¶óÀ̵å(override) ÇÏÁö ¾Ê°í, °Ô´Ù°¡ Áö¿øµÇ¾î ÀÖÁö ¾ÊÀº transferType
¸¦ »ç¿ëÇßÀ» °æ¿ì, ¿¹¿Ü°¡ ¹ß»ý µË´Ï´Ù.
ColorModel
³»ÀÇ getDataElements
rgb
- RGB Ä÷¯ ¸ðµ¨ÀÇ Á¤¼öÇü Çȼ¿ Ç¥Çöpixel
- ÁöÁ¤µÈ Çȼ¿
ColorModel
Çȼ¿ÀÇ µ¥ÀÌÅÍ ¿ä¼Ò ¹è¿ Ç¥Çö
ClassCastException
- pixel
°¡ nullÀÌ ¾Æ´Ï°í, transferType
ÇüÀÇ ¿ø½ÃÀû ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì
ArrayIndexOutOfBoundsException
- pixel
°¡ ÀÌ ColorModel
Çȼ¿Ä¡¸¦ º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì
UnsupportedOperationException
- ÀÌ ComponentColorModel
Àü¼ÛÇüÀÌ, Áö¿øµÇ°í ÀÖ´Â Àü¼ÛÇü (DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
, DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
, DataBuffer.TYPE_DOUBLE
)ÀÇ ¸ÓÁö¾Ê¾Æµµ ¾Æ´Ñ °æ¿ìWritableRaster.setDataElements(int, int, java.lang.Object)
,
SampleModel.setDataElements(int, int, java.lang.Object, java.awt.image.DataBuffer)
public int[] getComponents(int pixel, int[] components, int offset)
ColorModel
Çȼ¿À» ÁöÁ¤ÇØ, Ç¥ÁØÈµÇ¾î ÀÖÁö ¾ÊÀº »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀÇ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ColorModel
¼ººÐ°ªÀÌ ºñÇ¥ÁØÈ Çü½Ä¿¡¼ Ç¥ÇöÇÒ ¼ö ¾ø´Â °æ¿ì´Â IllegalArgumentException°¡ ¹ß»ý µË´Ï´Ù. »ö¼ººÐÀ̳ª ¾ËÆÄ ¼ººÐÀº, components
¹è¿ÀÇ offset
À§Ä¡·ÎºÎÅÍ Æ÷ÇԵ˴ϴÙ. À̰ÍÀº ¹è¿ÀÌ ÀÌ ¸Þ¼µå·Î ÇÒ´çÇÒ ¼ö ÀÖ´ÂÀÎ °æ¿ìµµ °°½À´Ï´Ù.
ColorModel
³»ÀÇ getComponents
pixel
- Á¤¼ö·Î ÁöÁ¤µÇ´Â Çȼ¿Ä¡components
- Ç¥ÁØÈµÇ¾î ÀÖÁö ¾ÊÀº »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀ» Æ÷ÇÔÇÏ´Â Á¤¼öÇüÀÇ ¹è¿. components
¹è¿ÀÌ nullÀÎ °æ¿ì´Â »õ·Î¿î ¹è¿À» ÇÒ´çÇÒ ¼ö ÀÖ´Âoffset
- components
¹è¿³»ÀÇ ¿ÀÇÁ¼Â(offset)
IllegalArgumentException
- ÀÌ ColorModel
¿¡ 2°³
ÀÌ»óÀÇ ¼ººÐÀÌ ÀÖ´Â °æ¿ì
IllegalArgumentException
- ÀÌ ColorModel
°¡ ºñÇ¥ÁØÈ Çü½ÄÀ» Áö¿øÇÏÁö ¾Ê´Â °æ¿ì
ArrayIndexOutOfBoundsException
- components
¹è¿ÀÌ nullÀÌ ¾Æ´Ñ °æ¿ì¿¡
offset ·ÎºÎÅÍÀÇ ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀ» º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ò ¶§public int[] getComponents(Object pixel, int[] components, int offset)
ColorModel
Çȼ¿À» ÁöÁ¤ÇØ, Ç¥ÁØÈµÇ¾î ÀÖÁö ¾ÊÀº »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀÇ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù. Çȼ¿ÀÇ °ªÀº °´Ã¼ ÂüÁ¶·Î¼ °Ç³×¹ÞÀº transferType
ÇüÀÇ µ¥ÀÌÅÍ ¿ä¼Ò¿¡
ÇÑ ¹è¿·Î ÁöÁ¤µË´Ï´Ù. ÀÌ ColorModel
¼ººÐ°ªÀÌ ºñÇ¥ÁØÈ Çü½Ä¿¡¼ Ç¥ÇöÇÒ ¼ö ¾ø´Â °æ¿ì´Â IllegalArgumentException°¡ ¹ß»ý µË´Ï´Ù. »ö¼ººÐÀ̳ª ¾ËÆÄ ¼ººÐÀº, components
¹è¿ÀÇ offset
À§Ä¡·ÎºÎÅÍ Æ÷ÇԵ˴ϴÙ. À̰ÍÀº ¹è¿ÀÌ ÀÌ ¸Þ¼µå·Î ÇÒ´çÇÒ ¼ö ÀÖ´ÂÀÎ °æ¿ìµµ °°½À´Ï´Ù. ComponentColorModel
´Â »ó¼ÓÇÒ ¼ö Àֱ⠶§¹®¿¡
¼ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼µåÀÇ ±¸ÇöÀ» »ó¼ÓÇÕ´Ï´Ù¸¸, ¼ºê Ŭ·¡½º°¡ ±× ±¸ÇöÀ» ¿À¹ö¶óÀ̵å(override) ÇÏÁö ¾Ê°í, °Ô´Ù°¡ Áö¿øµÇ¾î ÀÖÁö ¾ÊÀº transferType
¸¦ »ç¿ëÇßÀ» °æ¿ì, ÀÌ ¸Þ¼µå´Â ¿¹¿Ü¸¦ Throw ÇÏ´Â ÀÏÀÌ ÀÖ½À´Ï´Ù.
ColorModel
³»ÀÇ getComponents
pixel
- transferType
ÇüÀÇ µ¥ÀÌÅÍ ¿ä¼ÒÀÇ ¹è¿·Î ÁöÁ¤µÇ´Â Çȼ¿Ä¡components
- Ç¥ÁØÈµÇ¾î ÀÖÁö ¾ÊÀº »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀ» Æ÷ÇÔÇÏ´Â Á¤¼öÇüÀÇ ¹è¿. components
¹è¿ÀÌ nullÀÎ °æ¿ì´Â »õ·Î¿î ¹è¿À» ÇÒ´çÇÒ ¼ö ÀÖ´Âoffset
- components
¹è¿³»ÀÇ ¿ÀÇÁ¼Â(offset)
components
¹è¿
IllegalArgumentException
- ÀÌ ComponentColorModel
°¡ ºñÇ¥ÁØÈ Çü½ÄÀ» Áö¿øÇÏÁö ¾Ê´Â °æ¿ì
UnsupportedOperationException
- ÀÌ ComponentColorModel
Àü¼ÛÇüÀÌ, DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
¸ÓÁö¾Ê¾Æµµ ¾Æ´Ñ °æ¿ì
ClassCastException
- pixel
°¡ transferType
ÇüÀÇ ¿ø½ÃÀû ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì
IllegalArgumentException
- components
¹è¿ÀÌ nullÀÌ ¾Æ´Ñ °æ¿ì¿¡
offset ·ÎºÎÅÍÀÇ ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀ» º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ò ¶§. ȤÀº, pixel
°¡ ÀÌ ColorModel
Çȼ¿Ä¡¸¦ º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ìpublic int[] getUnnormalizedComponents(float[] normComponents, int normOffset, int[] components, int offset)
ColorModel
ColorSpace
¿¡ ÀÇÇØ ÁöÁ¤µÈ 1 ¼ººÐ ±ÙóÀÇ ÃÖ¼Ò¿Í ÃÖ´ëÀÇ »çÀÌÀÇ float°ªÀÔ´Ï´Ù. ÀÌ ColorModel
»ö¼ººÐ°ªÀÌ ºñÇ¥ÁØÈ Çü½Ä¿¡¼ Ç¥ÇöÇÒ ¼ö ¾ø´Â °æ¿ì´Â IllegalArgumentException
°¡ ¹ß»ý µË´Ï´Ù. components
¹è¿ÀÌ null
ÀÎ °æ¿ì´Â »õ·Î¿î ¹è¿À» ÇÒ´çÇÒ ¼ö ÀÖ½À´Ï´Ù. components
¹è¿ÀÌ ¸®Åϵ˴ϴÙ
. »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀº, offset
¸¦ ±âÁ¡À¸·Î components
¹è¿¿¡ Æ÷ÇԵ˴ϴÙ. ¹è¿ÀÌ ÀÌ ¸Þ¼µå·Î ÇÒ´çÇÒ ¼ö ÀÖ´ÂÀÎ °æ¿ìµµ °°½À´Ï´Ù. components
¹è¿ÀÌ null
ÀÌ ¾Æ´Ñ °æ¿ì¿¡
(offset
¸¦ ±âÁ¡À¸·Î) ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀ» Æ÷ÇÔÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ò ¶§´Â ArrayIndexOutOfBoundsException
°¡ ¹ß»ý µË´Ï´Ù. normComponents
¹è¿ÀÌ normOffset
¸¦ ±âÁ¡À¸·Î ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀ» Æ÷ÇÔÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì´Â IllegalArgumentException
°¡ ¹ß»ý µË´Ï´Ù.
ColorModel
³»ÀÇ getUnnormalizedComponents
normComponents
- Ç¥ÁØÈ ¼ººÐÀ» Æ÷ÇÔÇϰí ÀÖ´Â ¹è¿normOffset
- Ç¥ÁØÈ ¼ººÐÀÇ ÃëµæÀ» °³½ÃÇÏ´Â normComponents
¹è¿³»ÀÇ ¿ÀÇÁ¼Â(offset)components
- normComponents
·Î
ºÎÅÍ ¼ººÐÀ» ¹Þ´Â ¹è¿offset
- normComponents
·Î
ºÎÅÍ Ç¥ÁØÈ ¼ººÐÀÇ Æ÷ÇÔÀ» °³½ÃÇÏ´Â components
³»ÀÇ À妽º
IllegalArgumentException
- ÀÌ ComponentColorModel
°¡ ºñÇ¥ÁØÈ Çü½ÄÀ» Áö¿øÇÏÁö ¾Ê´Â °æ¿ì
IllegalArgumentException
- normComponents
·Î
ºÎÅÍ normOffset
À» »« ±æÀ̰¡ numComponents
º¸´Ù ÀÛÀº °æ¿ìpublic float[] getNormalizedComponents(int[] components, int offset, float[] normComponents, int normOffset)
ColorModel
ColorSpace
¿¡ ÀÇÇØ ÁöÁ¤µÈ 1 ¼ººÐ ±ÙóÀÇ ÃÖ¼Ò¿Í ÃÖ´ëÀÇ »çÀÌÀÇ float°ªÀÔ´Ï´Ù. ÀÌ ColorModel
»ö¼ººÐ°ªÀÌ ºñÇ¥ÁØÈ Çü½Ä¿¡¼ Ç¥ÇöÇÒ ¼ö ¾ø´Â °æ¿ì´Â IllegalArgumentException
°¡ ¹ß»ý µË´Ï´Ù. components
¹è¿ÀÌ null
ÀÎ °æ¿ì´Â »õ·Î¿î ¹è¿À» ÇÒ´çÇÒ ¼ö ÀÖ½À´Ï´Ù. components
¹è¿ÀÌ ¸®Åϵ˴ϴÙ
. »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀº, offset
¸¦ ±âÁ¡À¸·Î components
¹è¿¿¡ Æ÷ÇԵ˴ϴÙ. ¹è¿ÀÌ ÀÌ ¸Þ¼µå·Î ÇÒ´çÇÒ ¼ö ÀÖ´ÂÀÎ °æ¿ìµµ °°½À´Ï´Ù. components
¹è¿ÀÌ null
ÀÌ ¾Æ´Ñ °æ¿ì¿¡
(offset
¸¦ ±âÁ¡À¸·Î) ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀ» Æ÷ÇÔÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ò ¶§´Â ArrayIndexOutOfBoundsException
°¡ ¹ß»ý µË´Ï´Ù. normComponents
¹è¿ÀÌ normOffset
¸¦ ±âÁ¡À¸·Î ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀ» Æ÷ÇÔÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì´Â IllegalArgumentException
°¡ ¹ß»ý µË´Ï´Ù.
ColorModel
³»ÀÇ getNormalizedComponents
components
- Ç¥ÁØÈµÇ¾î ÀÖÁö ¾ÊÀº ¼ººÐÀ» Æ÷ÇÔÇϰí ÀÖ´Â ¹è¿offset
- Ç¥ÁØÈµÇ¾î ÀÖÁö ¾ÊÀº ¼ººÐÀÇ ÃëµæÀ» °³½ÃÇÏ´Â components
¹è¿³»ÀÇ ¿ÀÇÁ¼Â(offset)normComponents
- Ç¥ÁØÈ ¼ººÐÀ» ¹Þ´Â ¹è¿normOffset
- Ç¥ÁØÈ ¼ººÐÀÇ Æ÷ÇÔÀ» °³½ÃÇÏ´Â normComponents
³»ÀÇ À妽º
IllegalArgumentException
- ÀÌ ComponentColorModel
°¡ ºñÇ¥ÁØÈ Çü½ÄÀ» Áö¿øÇÏÁö ¾Ê´Â °æ¿ìpublic int getDataElement(int[] components, int offset)
ColorModel
int ·Î¼ Ç¥ÇöµÇ´Â Çȼ¿Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù.
ColorModel
³»ÀÇ getDataElement
components
- Ç¥ÁØÈµÇ¾î ÀÖÁö ¾ÊÀº »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀÇ ¹è¿offset
- components
¹è¿³»ÀÇ ¿ÀÇÁ¼Â(offset)
IllegalArgumentException
- ÀÌ ColorModel
¿¡ 2°³
ÀÌ»óÀÇ ¼ººÐÀÌ ÀÖ´Â °æ¿ì
IllegalArgumentException
- ÀÌ ComponentColorModel
°¡ ºñÇ¥ÁØÈ Çü½ÄÀ» Áö¿øÇÏÁö ¾Ê´Â °æ¿ìpublic Object getDataElements(int[] components, int offset, Object obj)
ColorModel
Çȼ¿ÀÇ µ¥ÀÌÅÍ ¿ä¼Ò ¹è¿ Ç¥ÇöÀ» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¹è¿Àº, WritableRaster
°´Ã¼ÀÇ setDataElements
¸Þ¼µå¿¡ °Ç³×ÁÙ ¼ö°¡ ÀÖ½À´Ï´Ù.
ColorModel
³»ÀÇ getDataElements
components
- Ç¥ÁØÈµÇ¾î ÀÖÁö ¾ÊÀº »ö¼ººÐ ¶Ç´Â ¾ËÆÄ ¼ººÐÀÇ ¹è¿offset
- components
¹è¿³»ÀÇ int ¿ÀÇÁ¼Â(offset)obj
- Çȼ¿ÀÇ µ¥ÀÌÅÍ ¿ä¼Ò ¹è¿ Ç¥ÇöÀ» Æ÷ÇÔÇÏ´Â °´Ã¼. obj
º¯¼ö°¡ nullÀÎ °æ¿ì´Â »õ·Î¿î ¹è¿À» ÇÒ´çÇÒ ¼ö ÀÖ´Ù. obj
°¡ nullÀÌ ¾Æ´Ñ °æ¿ì´Â transferType
ÇüÀÇ ¿ø½ÃÀû ¹è¿ÀÌ ¾Æ´Ï¸é ¾ÈµÈ´Ù. obj
°¡ ÀÌ ColorModel
Çȼ¿Ä¡¸¦ º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì´Â ArrayIndexOutOfBoundsException
°¡ Throw µÈ´Ù. ComponentColorModel
´Â »ó¼ÓÇÒ ¼ö Àֱ⠶§¹®¿¡
¼ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼µåÀÇ ±¸ÇöÀ» »ó¼ÓÇÏÁö¸¸, ¼ºê Ŭ·¡½º°¡ ±× ±¸ÇöÀ» ¿À¹ö¶óÀ̵å(override) ÇÏÁö ¾Ê°í, °Ô´Ù°¡ Áö¿øµÇ¾î ÀÖÁö ¾ÊÀº transferType
¸¦ »ç¿ëÇßÀ» °æ¿ì, ¿¹¿Ü°¡ Throw µÈ´Ù
ColorModel
Çȼ¿ÀÇ µ¥ÀÌÅÍ ¿ä¼Ò ¹è¿ Ç¥Çö
IllegalArgumentException
- components ¹è¿ÀÌ, offset ·ÎºÎÅÍÀÇ ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀ» º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì
ClassCastException
- obj
°¡ nullÀÌ ¾Æ´Ï°í, transferType
ÇüÀÇ ¿ø½ÃÀû ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì
ArrayIndexOutOfBoundsException
- obj
°¡ ÀÌ ColorModel
Çȼ¿Ä¡¸¦ º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì
IllegalArgumentException
- ÀÌ ComponentColorModel
°¡ ºñÇ¥ÁØÈ Çü½ÄÀ» Áö¿øÇÏÁö ¾Ê´Â °æ¿ì
UnsupportedOperationException
- ÀÌ ComponentColorModel
Àü¼ÛÇüÀÌ, DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
¸ÓÁö¾Ê¾Æµµ ¾Æ´Ñ °æ¿ìWritableRaster.setDataElements(int, int, java.lang.Object)
,
SampleModel.setDataElements(int, int, java.lang.Object, java.awt.image.DataBuffer)
public int getDataElement(float[] normComponents, int normOffset)
ColorModel
¿¡ int
·Î
¼ ³ªÅ¸³»Áö´Â Çȼ¿Ä¡¸¦ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ColorModel
Çȼ¿°ªÀÌ ´ÜÀÏÀÇ int
·Î
¼ Ç¥ÇöÇÒ ¼ö ¾ø´Â °æ¿ì, ÀÌ ¸Þ¼µå´Â IllegalArgumentException
À»
Throw ÇÕ´Ï´Ù. normComponents
¹è¿ÀÌ (normOffset
¸¦ ±âÁ¡À¸·Î) ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀ» º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì´Â ArrayIndexOutOfBoundsException
°¡ ¹ß»ý µË´Ï´Ù.
ColorModel
³»ÀÇ getDataElement
normComponents
- Ç¥ÁØÈ µÇ°í ÀÖ´Â »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀÇ ¹è¿normOffset
- »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀÇ ÃëµæÀ» °³½ÃÇÏ´Â normComponents
³»ÀÇ À妽º
ColorModel
³»ÀÇ int
Çȼ¿Ä¡
IllegalArgumentException
- ÀÌ ColorModel
Çȼ¿°ªÀÌ ´ÜÀÏÀÇ int
·Î
¼ Ç¥ÇöÇÒ ¼ö ¾ø´Â °æ¿ì
ArrayIndexOutOfBoundsException
- normComponents
¹è¿ÀÇ Å©±â°¡ normOffset
¸¦ ±âÁ¡À¸·Î ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀ» º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÏÁö ¾ÊÀº °æ¿ìpublic Object getDataElements(float[] normComponents, int normOffset, Object obj)
ColorModel
Çȼ¿ÀÇ µ¥ÀÌÅÍ ¿ä¼Ò ¹è¿ Ç¥ÇöÀ» ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¹è¿Àº, WritableRaster
°´Ã¼ÀÇ setDataElements
¸Þ¼µå¿¡ °Ç³×ÁÙ ¼ö°¡ ÀÖ½À´Ï´Ù. normComponents
¹è¿ÀÌ (normOffset
¸¦ ±âÁ¡À¸·Î) ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀ» Æ÷ÇÔÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì´Â ArrayIndexOutOfBoundsException
°¡ ¹ß»ý µË´Ï´Ù. obj
º¯¼ö°¡ null
ÀÎ °æ¿ì´Â »õ·Î¿î ¹è¿À» ÇÒ´çÇÒ ¼ö ÀÖ½À´Ï´Ù. obj
°¡ null
ÀÌ ¾Æ´Ñ °æ¿ì´Â transferType ÇüÀÇ ¿ø½ÃÀû ¹è¿ÀÏ Çʿ䰡 ÀÖ½À´Ï´Ù. ±×·¸Áö ¾ÊÀº °æ¿ì´Â ClassCastException
°¡ ¹ß»ý µË´Ï´Ù. obj
°¡ ÀÌ ColorModel
Çȼ¿Ä¡¸¦ Æ÷ÇÔÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì´Â ArrayIndexOutOfBoundsException
°¡ ¹ß»ý µË´Ï´Ù.
ColorModel
³»ÀÇ getDataElements
normComponents
- Ç¥ÁØÈ µÇ°í ÀÖ´Â »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀÇ ¹è¿normOffset
- »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀÇ ÃëµæÀ» °³½ÃÇÏ´Â normComponents
³»ÀÇ À妽ºobj
- ¸®ÅÏµÈ Çȼ¿À» º¸°ü À¯ÁöÇÏ´Â ¿ø½ÃÀû µ¥ÀÌÅÍ ¹è¿
Object
ClassCastException
- obj
°¡ transferType
ÇüÀÇ ¿ø½ÃÀû ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì
ArrayIndexOutOfBoundsException
- obj
°¡ ÀÌ ColorModel
Çȼ¿Ä¡¸¦ º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ì, ȤÀº normOffset
¸¦ ±âÁ¡À¸·Î ÇÑ normComponents
¹è¿ÀÌ ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀ» º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ìWritableRaster.setDataElements(int, int, java.lang.Object)
,
SampleModel.setDataElements(int, int, java.lang.Object, java.awt.image.DataBuffer)
public float[] getNormalizedComponents(Object pixel, float[] normComponents, int normOffset)
ColorModel
ÁöÁ¤µÈ Çȼ¿¿¡ ´ëÇØ, Ç¥ÁØÈ Çü½Ä¿¡¼ »ö¼ººÐ°ú ¾ËÆÄ ¼ººÐÀÇ ¹è¿À» ¸®ÅÏÇÕ´Ï´Ù. Çȼ¿Ä¡´Â °´Ã¼ ÂüÁ¶·Î¼ °Ç³×¹Þ´Â transferType ÇüÀÇ µ¥ÀÌÅÍ ¿ä¼ÒÀÇ ¹è¿¿¡ ÀÇÇØ ÁöÁ¤µË´Ï´Ù. pixel°¡ transferType ÇüÀÇ ¿ø½ÃÀû ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì´Â ClassCastException
°¡ ¹ß»ý µË´Ï´Ù. pixel
°¡ ÀÌ ColorModel
Çȼ¿Ä¡¸¦ Æ÷ÇÔÇÒ ¼ö ÀÖÀ» ¸¸Å Å©Áö ¾ÊÀº °æ¿ì´Â ArrayIndexOutOfBoundsException
°¡ ¹ß»ý µË´Ï´Ù. Ç¥ÁØÈ ¼ººÐÀº ÀÌ ColorModel
ColorSpace
°´Ã¼¿¡ ÀÇÇØ ÁöÁ¤µÈ ¼ººÐ¸¶´ÙÀÇ ÃÖ¼Ò¿Í ÃÖ´ëÀÇ »çÀÌÀÇ float°ªÀÔ´Ï´Ù. normComponents
¹è¿ÀÌ null
ÀÎ °æ¿ì´Â »õ·Î¿î ¹è¿À» ÇÒ´çÇÒ ¼ö ÀÖ½À´Ï´Ù. ±× normComponents
¹è¿ÀÌ ¸®Åϵ˴ϴÙ
. »ö¼ººÐ°ú ¾ËÆÄ ¼ººÐÀº, normOffset
·Î
ºÎÅÍ ½ÃÀ۵Ǵ normComponents
¹è¿¿¡ Æ÷ÇԵ˴ϴÙ. À̰ÍÀº ¹è¿ÀÌ ÀÌ ¸Þ¼µå·Î ÇÒ´çÇÒ ¼ö ÀÖ´ÂÀÎ °æ¿ìµµ °°½À´Ï´Ù. normComponents
¹è¿ÀÌ null
ÀÌ ¾Æ´Ï°í, »ö¼ººÐ°ú ¾ËÆÄ ¼ººÐ (normOffset
·Î
ºÎÅÍ ½ÃÀ۵ȴÙ)ÀÇ ¸ðµç °ÍÀ» Æ÷ÇÔÇÒ ¼ö ÀÖÀ» ¸¸Å Å©Áö ¾ÊÀº °æ¿ì´Â ArrayIndexOutOfBoundsException
°¡ ¹ß»ý µË´Ï´Ù.
¼ºê Ŭ·¡½º°¡ µðÆúÆ®¿Í´Â ´Ù¸¥ ¹æ¹ýÀ¸·Î Çȼ¿ »ùÇÃÄ¡¸¦ »ö¼ººÐÄ¡¿¡ º¯È¯Çϵµ·Ï ¼³°èµÇ°í ÀÖ´Â °æ¿ì´Â ÀÌ ¸Þ¼µå¸¦ ¼ºê Ŭ·¡½º¿¡¼ ¿À¹ö¶óÀ̵å(override) ÇÒ Çʿ䰡 ÀÖ½À´Ï´Ù. ÀÌ Å¬·¡½º¿¡ ÀÇÇØ ±¸ÇöµÇ´Â µðÆúÆ®ÀÇ º¯È¯Àº Ŭ·¡½ºÀÇ ÄÚ¸àÆ®¿¡ ±â¼úµÇ°í ÀÖ½À´Ï´Ù. µðÆúÆ®°¡ ¾Æ´Ñ º¯È¯À» ±¸ÇöÇÏ´Â ¼ºê Ŭ·¡½º´Â ÀÌ ÄÚ¸àÆ®¿¡ Á¤ÀÇµÈ Çã¿ë º¯È¯ÀÇ Á¦¾à¿¡ µû¸¦ Çʿ䰡 ÀÖ½À´Ï´Ù.
ColorModel
³»ÀÇ getNormalizedComponents
pixel
- ÁöÁ¤µÈ Çȼ¿normComponents
- Ç¥ÁØÈ ¼ººÐÀ» ¹Þ´Â ¹è¿normOffset
- Ç¥ÁØÈ ¼ººÐÀÇ Æ÷ÇÔÀ» °³½ÃÇÏ´Â normComponents
¹è¿³»ÀÇ ¿ÀÇÁ¼Â(offset)
ClassCastException
- pixel
°¡ transferType ÇüÀÇ ¿ø½ÃÀû ¹è¿ÀÌ ¾Æ´Ñ °æ¿ì
ArrayIndexOutOfBoundsException
- normComponents
Å©±â°¡ normOffset
¸¦ ±âÁ¡À¸·Î ¸ðµç »ö¼ººÐ ¹× ¾ËÆÄ ¼ººÐÀ» º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÏÁö ¾ÊÀº °æ¿ì
ArrayIndexOutOfBoundsException
- pixel
°¡ ÀÌ ColorModel
Çȼ¿Ä¡¸¦ º¸°ü À¯ÁöÇϴµ¥ ÃæºÐÇÑ Å©±â°¡ ¾Æ´Ñ °æ¿ìpublic ColorModel coerceData(WritableRaster raster, boolean isAlphaPremultiplied)
isAlphaPremultiplied
º¯¼ö·Î ÁöÁ¤µÈ »óÅÂ¿Í ÀÏÄ¡Çϵµ·Ï ÇÕ´Ï´Ù. ÀÌ ¶§, µ¥ÀÌÅÍ´Â ÀÌ ColorModel
¿¡ ÀÇÇØ ÇöÀç ¿Ã¹Ù¸£°Ô ±â¼úµÇ°í ÀÖ´Ù°í º¸¿©Áý´Ï´Ù. ÀÌ ¸Þ¼µå´Â Ä÷¯ ¶ó½ºÅÍ µ¥ÀÌÅ͸¦ ¾ËÆÄ¿¡¼ °ö¼À ¶Ç´Â Á¦»êÇÕ´Ï´Ù. µ¥ÀÌÅͰ¡ ¿Ã¹Ù¸¥ »óÅ¿¡ ÀÖ´Â °æ¿ì¿¡´Â 󸮴 ½Ç½ÃÇÏÁö ¾Ê½À´Ï´Ù. µ¥ÀÌÅͰ¡ °Á¦ÀûÀ¸·Î ÇüÅ º¯È¯µÉ Çʿ䰡 ÀÖ´Â °æ¿ì, ÀÌ ¸Þ¼µå´Â isAlphaPremultiplied
Ç÷¡±×¸¦ ¿Ã¹Ù¸£°Ô ¼³Á¤ÇÑ, ÀÌ ColorModel
ÀνºÅϽºµµ ¸®ÅÏÇÕ´Ï´Ù. ColorModel
´Â »ó¼ÓÇÒ ¼ö Àֱ⠶§¹®¿¡
¼ºê Ŭ·¡½º´Â ÀÌ ¸Þ¼µåÀÇ ±¸ÇöÀ» »ó¼ÓÇÕ´Ï´Ù¸¸, ¼ºê Ŭ·¡½º°¡ ±× ±¸ÇöÀ» ¿À¹ö¶óÀ̵å(override) ÇÏÁö ¾Ê°í, °Ô´Ù°¡ Áö¿øµÇ¾î ÀÖÁö ¾ÊÀº transferType
¸¦ »ç¿ëÇßÀ» °æ¿ì, ¿¹¿Ü°¡ ¹ß»ý µË´Ï´Ù.
ColorModel
³»ÀÇ coerceData
raster
- WritableRaster
µ¥ÀÌÅÍisAlphaPremultiplied
- ¾ËÆÄ°¡ ¹Ì¸® °ö¼ÀµÇ°í ÀÖ´Â °æ¿ì´Â true
, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
ColorModel
°´Ã¼
NullPointerException
- raster
°¡ null
·Î
°Á¦ º¯È¯ÀÌ ÇÊ¿äÇÑ °æ¿ì
UnsupportedOperationException
- ÀÌ ComponentColorModel
Àü¼ÛÇüÀÌ, Áö¿øµÇ°í ÀÖ´Â Àü¼ÛÇü (DataBuffer.TYPE_BYTE
, DataBuffer.TYPE_USHORT
, DataBuffer.TYPE_INT
, DataBuffer.TYPE_SHORT
, DataBuffer.TYPE_FLOAT
, DataBuffer.TYPE_DOUBLE
)ÀÇ ¸ÓÁö¾Ê¾Æµµ ¾Æ´Ñ °æ¿ìpublic boolean isCompatibleRaster(Raster raster)
raster
°¡ ÀÌ ColorModel
¿Í
ȣȯ¼ºÀÌ ÀÖ´Â °æ¿ì¿¡ true¸¦ µ¹·ÁÁÖ°í, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false¸¦ ¸®ÅÏÇÕ´Ï´Ù.
ColorModel
³»ÀÇ isCompatibleRaster
raster
- ȣȯ¼ºÀ» ÆÇÁ¤ÇÏ´Â Raster
°´Ã¼
raster
°¡ ÀÌ ColorModel
¿Í
ȣȯ¼ºÀÌ ÀÖ´Â °æ¿ì´Â true
, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
public WritableRaster createCompatibleWritableRaster(int w, int h)
ColorModel
¿Í
ȣȯ¼ºÀÌ ÀÖ´Â µ¥ÀÌÅÍ ·¹À̾ƿô (SampleModel
)À» °¡Áö´Â WritableRaster
¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
ColorModel
³»ÀÇ createCompatibleWritableRaster
w
- »ý¼ºÇÏ´Â WritableRaster
Æøh
- »ý¼ºÇÏ´Â WritableRaster
³ôÀÌ
ColorModel
¿Í
ȣȯ¼ºÀÌ ÀÖ´Â WritableRaster
WritableRaster
,
SampleModel
public SampleModel createCompatibleSampleModel(int w, int h)
ColorModel
¿Í
ȣȯ¼ºÀÌ ÀÖ´Â µ¥ÀÌÅÍ ·¹À̾ƿôÀ» °¡Áö´Â SampleModel
¸¦ ÀÛ¼ºÇÕ´Ï´Ù.
ColorModel
³»ÀÇ createCompatibleSampleModel
w
- »ý¼ºÇÏ´Â SampleModel
Æøh
- »ý¼ºÇÏ´Â SampleModel
³ôÀÌ
ColorModel
¿Í
ȣȯ¼ºÀÌ ÀÖ´Â SampleModel
SampleModel
public boolean isCompatibleSampleModel(SampleModel sm)
SampleModel
°¡ ÀÌ ColorModel
¿Í
ȣȯ¼ºÀÌ ÀÖÀ»Áö ¾î¶³Áö¸¦ ÆÇÁ¤ÇÕ´Ï´Ù.
ColorModel
³»ÀÇ isCompatibleSampleModel
sm
- ȣȯ¼ºÀ» ÆÇÁ¤ÇÏ´Â SampleModel
SampleModel
°¡ ÀÌ ColorModel
¿Í
ȣȯ¼ºÀÌ ÀÖ´Â °æ¿ì´Â true
, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
SampleModel
public WritableRaster getAlphaRaster(WritableRaster raster)
Raster
¸¦, ÀÔ·ÂµÈ Raster
·ÎºÎÅÍ ÃßÃâÇØ ¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼µå´Â ÀÌ ColorModel
¿¡ °ü·ÃÇÑ Raster
°´Ã¼¿¡ ¾ËÆÄ ¹êµå°¡ ÀÖÀ¸¸é, ±× ¾ËÆÄ ¹êµå¸¦ À̹ÌÁö µ¥ÀÌÅÍÀÇ ÃÖÁ¾ ¹êµå·Î¼ Æ÷ÇÔÇϰí ÀÖ´Ù°í º¾´Ï´Ù. ÀÌ ColorModel
¿¡ °ü·ÃÇÑ °ø°£ ¾ËÆÄ ä³ÎÀÌ ±× ¹Û¿¡ ¾ø´Â °æ¿ì´Â nullÀ»
¸®ÅÏÇÕ´Ï´Ù. ÀÌ ¸Þ¼µå´Â »õ·Î¿î Raster
¸¦ ÀÛ¼ºÇÕ´Ï´Ù¸¸, µ¥ÀÌÅÍ ¹è¿Àº °øÀ¯ÇÏ°Ô µË´Ï´Ù.
ColorModel
³»ÀÇ getAlphaRaster
raster
- ¾ËÆÄ ä³ÎÀ» ÃßÃâÇÏ´Â WritableRaster
WritableRaster
public boolean equals(Object obj)
ColorModel
³»ÀÇ equals
obj
- ÀÌ Ä÷¯ ¸ðµ¨°ú ºñ±³ÇÏ´Â °´Ã¼
true
, ±×·¸Áö ¾ÊÀº °æ¿ì´Â false
Object.hashCode()
,
Hashtable
|
JavaTM 2 Platform Standard Ed. 5.0 |
|||||||||
ÀÌÀü Ŭ·¡½º ´ÙÀ½ Ŭ·¡½º | ÇÁ·¹ÀÓÀ¸·Î ÇÁ·¹ÀÓ ¾øÀÌ | |||||||||
°³¿ä: NESTED | Çʵå | constructor | ¸Þ¼µå | »ó¼¼: Çʵå | »ý¼ºÀÚ | ¸Þ¼µå |
Copyright 2004 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms . Documentation Redistribution Policy µµ ÂüÁ¶ÇϽʽÿÀ.