|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.skt.m.Graphics2D
Graphics2D Ŭ·¡½º´Â MIDP Ç¥ÁØ ±Ô°Ý¿¡ Æ÷ÇÔµÇÁö ¾ÊÀº Çâ»óµÈ 2D ±×·¡ÇÈ ±â´ÉÀ» Á¦°øÇØÁØ´Ù. Graphics2D °´Ã¼¸¦ ¾ò¾î¿À±â À§ÇØ getGraphic2D() ¸Þ¼Òµå¸¦ »ç¿ëÇÑ´Ù. getGraphics() ¸Þ¼Òµå¸¦ Çѹø È£ÃâÇÒ ¶§¸¶´Ù »õ·Î¿î Graphics2D °´Ã¼°¡ »ý¼ºµÈ´Ù.
void paint(Graphics g) { Graphics2D g2 = Graphics2D.getGraphics2D(g); ... // ±×·¡ÇÈ ÀÛ¾÷ }
X-350 : Graphics2D °´Ã¼´Â ±Û·Î¹úÇÏ°Ô Çϳª¸¸ Á¸ÀçÇϸç getGraphics2D() ¸Þ¼Òµå¸¦ È£ÃâÇÒ ¶§¸¶´Ù ³»ºÎÀûÀ¸·Î Graphics ·¹ÆÛ·±½º¸¸ º¯°æÇÑ´Ù. ±×·¯¹Ç·Î ¿©·¯°³ÀÇ Graphics °´Ã¼¿¡ ´ëÇØ Graphics2D °´Ã¼¸¦ »ç¿ëÇÒ °æ¿ì¿¡´Â ¸Å¹ø getGraphics2D() ¸Þ¼Òµå¸¦ È£ÃâÇØ¾ß ÇÑ´Ù. ±×·¯³ª ÄÚµå »óÀ¸·Î ¹Ù²ã¾ßÇÒ ºÎºÐÀº ¾ø´Ù.
Field Summary | |
static int |
DRAW_AND
À̹ÌÁö¸¦ AND ÇÑ´Ù. |
static int |
DRAW_COPY
À̹ÌÁö¸¦ º¹»çÇÑ´Ù. |
static int |
DRAW_OR
À̹ÌÁö¸¦ OR ÇÑ´Ù. |
static int |
DRAW_XOR
À̹ÌÁö¸¦ XOR ÇÑ´Ù. |
Method Summary | |
static javax.microedition.lcdui.Image |
captureLCD(int x,
int y,
int w,
int h)
LCDȸé»óÀÇ À̹ÌÁö¸¦ °¡Á®¿Â´Ù. |
static javax.microedition.lcdui.Image |
createMaskableImage(int width,
int height)
¸¶½ºÅ©µÉ¼ö ÀÖ´Â À̹ÌÁö¸¦ »ý¼ºÇÑ´Ù. |
void |
drawImage(int tx,
int ty,
javax.microedition.lcdui.Image src,
int sx,
int sy,
int sw,
int sh,
int mode)
¼Ò½º À̹ÌÁöÀÇ Æ¯Á¤ ¿µ¿ªÀ» ±×¸°´Ù. |
static Graphics2D |
getGraphics2D(javax.microedition.lcdui.Graphics g)
Graphics2D °´Ã¼¸¦ ¾ò¾î ¿Â´Ù. |
int |
getPixel(int x,
int y)
ƯÁ¤ ÁÂÇ¥ pixelÀ» °¡Á®¿Â´Ù. |
boolean |
getPixelMask(int x,
int y)
ƯÁ¤ ÁÂÇ¥ÀÇ pixelÀÇ ¸¶½ºÅ©¸¦ °¡Á®¿Â´Ù. |
void |
invertRect(int x,
int y,
int w,
int h)
ƯÁ¤ ¿µ¿ªÀ» ¹ÝÀü½ÃŲ´Ù. |
void |
setPixel(int x,
int y,
int col)
ƲÁ¤ ÁÂÇ¥ÀÇ pixelÀÇ Color¸¦ Á¤ÇÑ´Ù. |
void |
setPixelMask(int x,
int y,
boolean mask)
ƯÁ¤ ÁÂÇ¥ÀÇ pixelÀÇ ¸¶½ºÅ©¸¦ Á¤ÇÑ´Ù. |
Field Detail |
public static final int DRAW_COPY
public static final int DRAW_AND
public static final int DRAW_OR
public static final int DRAW_XOR
Method Detail |
public static Graphics2D getGraphics2D(javax.microedition.lcdui.Graphics g)
g
- Graphics °´Ã¼com.skt.m.NullPointerException
- ¸¸¾à g°¡ nullÀÏ °æ¿ìpublic void drawImage(int tx, int ty, javax.microedition.lcdui.Image src, int sx, int sy, int sw, int sh, int mode)
tx
- ¸ñÇ¥ GraphicsÀÇ XÁÂÇ¥ty
- ¸ñÇ¥ GraphicsÀÇ YÁÂÇ¥src
- ¼Ò½º À̹ÌÁösx
- ¼Ò½º À̹ÌÁöÀÇ XÁÂÇ¥sy
- ¼Ò½º À̹ÌÁöÀÇ YÁÂÇ¥sw
- ¼Ò½º À̹ÌÁöÀÇ ³ÐÀÌsh
- ¼Ò½º À̹ÌÁöÀÇ ³ôÀÌmode
- À̹ÌÁöÀÇ 4°³Áö ¸ðµåÁß Çϳªcom.skt.m.NullPointerException
- src°¡ nullÀ϶§com.skt.m.IllegalArgumentException
- mode°¡ Á¤»óÀûÀÎ °ªÀÌ ¾Æ´Ò °æ¿ìpublic void invertRect(int x, int y, int w, int h)
x
- XÁÂÇ¥y
- YÁÂÇ¥w
- ³ÐÀÌh
- ³ôÀÌcom.skt.m.IllegalArgumentException
- w³ª h°¡ 0º¸´Ù À۰ųª °°À» °æ¿ìpublic int getPixel(int x, int y)
x
- XÁÂÇ¥y
- YÁÂÇ¥public void setPixel(int x, int y, int col)
x
- XÁÂÇ¥y
- YÁÂÇ¥col
- Colorpublic boolean getPixelMask(int x, int y)
x
- XÁÂÇ¥y
- YÁÂÇ¥public void setPixelMask(int x, int y, boolean mask)
x
- XÁÂÇ¥y
- YÁÂÇ¥mask
- ¸¶½ºÅ© ¿©ºÎpublic static javax.microedition.lcdui.Image captureLCD(int x, int y, int w, int h)
x
- XÁÂÇ¥y
- YÁÂÇ¥width
- ³ÐÀÌ(in pixel)height
- ³ôÀÌ(in pixel)public static javax.microedition.lcdui.Image createMaskableImage(int width, int height)
width
- ³ÐÀÌ(in pixel)height
- ³ôÀÌ(in pixel)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |