|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
PaintContext
ÀÎÅÍÆäÀ̽º´Â Graphics2D
¿¡¼ÀÇ ÀüºÎ Ä¥ÇØ Á¶ÀÛ¿ë ¶Ç´Â stroke Á¶ÀÛ¿ëÀ¸·Î¼ µð¹ÙÀ̽º °ø°£¿¡¼ Ä®¶ó ÆÐÅÏÀ» »ý¼ºÇϱâ À§ÇÑ , ĸ½¶È ¹× ÃÖÀûÈÇÑ È¯°æÀ» Á¤ÀÇÇÕ´Ï´Ù. PaintContext
´Â ColorModel
¿¡ °ü·ÃÇÑ Raster
ÀÇ Çü½Ä¿¡¼,Graphics2D
Á¶ÀÛ¿¡ ÇÊ¿äÇÑ »öÀ» Á¦°øÇÕ´Ï´Ù. PaintContext
´Â ƯÁ¤ÀÇ ÀüºÎ Ä¥ÇØ Á¶ÀÛ »óŸ¦ À¯ÁöÇÕ´Ï´Ù. multi-thread ȯ°æ¿¡¼´Â 1 °³ÀÇ Paint
¿ÀºêÁ§Æ®¿¡ ´ëÇØ¼ µ¿½Ã¿¡ º¹¼öÀÇ ¹®¸ÆÀÌ Á¸ÀçÇÏ´Â °æ¿ì°¡ ÀÖ½À´Ï´Ù.
Paint
¸Þ¼ÒµåÀÇ °³¿ä | |
void |
dispose ()
Á¶ÀÛ¿¡ ÇÒ´çÇÒ ¼ö ÀÖ°í ÀÖ´Â ¸®¼Ò½º¸¦ ÇØ¹æÇÕ´Ï´Ù. |
ColorModel |
getColorModel ()
Ãâ·ÂÀÇ ColorModel ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
Raster |
getRaster (int x,
int y,
int w,
int h)
±×·¡ÇȽº Á¶ÀÛ¿ëÀ¸·Î »ý¼ºµÈ »öÀ» ÀúÀåÇÏ´Â Raster ¸¦ µ¹·ÁÁÝ´Ï´Ù. |
¸Þ¼ÒµåÀÇ »ó¼¼ |
public void dispose()
public ColorModel getColorModel()
ColorModel
¸¦ µ¹·ÁÁÝ´Ï´Ù. ÀÌ ColorModel
´Â Paint
ÀÇ createContext
¸Þ¼Òµå·Î ÁöÁ¤µÈ ÈùÆ®¿Í´Â ´Ù¸¥ °æ¿ì°¡ ÀÖ½À´Ï´Ù. ¸ðµç PaintContext
¿ÀºêÁ§Æ®°¡ ÀÓÀÇÀÇ ColorModel
·Î Ä®¶ó ÆÐÅÏÀ» »ý¼ºÇÒ ¼ö ÀÖ´Â °ÍÀº ¾Æ´Õ´Ï´Ù.
ColorModel
public Raster getRaster(int x, int y, int w, int h)
Raster
¸¦ µ¹·ÁÁÝ´Ï´Ù.
w
- µð¹ÙÀ̽º °ø°£¿¡¼ÀÇ areaÀÇ Æøh
- µð¹ÙÀ̽º °ø°£¿¡¼ÀÇ areaÀÇ ³ôÀÌ
Raster
|
JavaTM 2 Platform Std. Ed. v1. 4.0 |
||||||||||
ÀüÀÇ Å¬·¡½º ´ÙÀ½ÀÇ Å¬·¡½º | ÇÁ·¹ÀÓ ÀÖ¾î ÇÁ·¹ÀÓ ¾øÀ½ | ||||||||||
°³¿ä: »óÀÚ | Çʵå | constructor | ¸Þ¼Òµå | »ó¼¼: Çʵå | constructor | ¸Þ¼Òµå |
Java, Java 2 D, ¹× JDBC ´Â ¹Ì±¹ ¹× ±× ¿ÜÀÇ ³ª¶ó¿¡ ÀÖ¾î¼ÀÇ ¹Ì±¹ Sun Microsystems, Inc. ÀÇ »óÇ¥ ȤÀº µî·Ï»óÇ¥ÀÔ´Ï´Ù.
Copyright 1993-2002 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.