¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ñ¸ì¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS

·ÈÂÓjava/¥¤¥á¡¼¥¸¤Îȿž¡¦90ÅÙñ°Ì²óž

Last-modified: 2018-11-14 (¿å) 15:24:16 (1982d)
Top / ·ÈÂÓjava / ¥¤¥á¡¼¥¸¤Îȿž¡¦90ÅÙñ°Ì²óž

MIDP2.0¡Á, DoJa3.0¡Á¤Ç¶¦ÄÌŪ¤Ë»È¤¨¤ë¥¤¥á¡¼¥¸ÉÁ²è¤Ë¤Ä¤¤¤Æ¤Î¹Í»¡

MIDP2.0

Graphics¥¯¥é¥¹¤Î¥¤¥á¡¼¥¸ÉÁ²è¥á¥½¥Ã¥É°ú¿ô¤Ç»ØÄꤷ¤Þ¤¹¡£

   drawRegion(Image src,
       int x_src,
       int y_src,
       int width,
       int height,
       int transform, ... ¤³¤³¤ËSprite¥¯¥é¥¹¤Î¥¯¥é¥¹Äê¿ô¤òÀßÄê
       int x_dest,
       int y_dest,
       int anchor)

DoJa3.0

Graphics¥¯¥é¥¹¤Î¥ª¥Ö¥¸¥§¥¯¥È¤ËÂФ·¤Æ¡¢g.setFlipMode(int flipmode)¤Ë¤Æ¥¤¥á¡¼¥¸¤ÎÉÁ²èÊýË¡¤òÀßÄꤷ¤Þ¤¹¡£ Graphics¥¯¥é¥¹¤Î¥¯¥é¥¹Äê¿ô¤òÀßÄꤷ¤Þ¤¹¡£
drawImage(Image, int, int)¡¢ drawImage(Image, int, int, int, int, int, int)¡¢ drawScaledImage(Image, int, int, int, int, int, int, int, int) ¥á¥½¥Ã¥É¤Ë¤ª¤±¤ëÉÁ²è¤ÇȿžÉÁ²è¤ò¹Ô¤¤¤Þ¤¹¡£ ¥ª¥×¥·¥ç¥óAPI¤ÎGraphics¥¯¥é¥¹¤Î¥µ¥Ö¥¯¥é¥¹¤Ë¤ª¤±¤ë¥¤¥á¡¼¥¸ÉÁ²è¥á¥½¥Ã¥É¤Ç ȿžÉÁ²è¤Î»ØÄ꤬ͭ¸ú¤«Èݤ«¤Ïµ¡¼ï°Í¸¤Ç¤¹¡£

³ÆÀßÄêÃÍ

MIDP2.0¤ÎÀßÄêÃÍDoJa¤ÎÀßÄêÃÍÆâÍÆ
Sprite.TRANS_NONEGraphics.FLIP_NONEcauses the specified image region to be copied unchanged.
Sprite.TRANS_ROT90Graphics.FLIP_ROTATE_RIGHTcauses the specified image region to be rotated clockwise by 90 degrees.
Sprite.TRANS_ROT180Graphics.FLIP_ROTATEcauses the specified image region to be rotated clockwise by 180 degrees.
Sprite.TRANS_ROT270Graphics.FLIP_ROTATE_LEFTcauses the specified image region to be rotated clockwise by 270 degrees.
Sprite.TRANS_MIRRORGraphics.FLIP_HORIZONTALcauses the specified image region to be reflected about its vertical center.
Sprite.TRANS_MIRROR_ROT90causes the specified image region to be reflected about its vertical center and then rotated clockwise by 90 degrees.
Sprite.TRANS_MIRROR_ROT180Graphics.FLIP_VERTICALcauses the specified image region to be reflected about its vertical center and then rotated clockwise by 180 degrees.
Sprite.TRANS_MIRROR_ROT270causes the specified image region to be reflected about its vertical center and then rotated clockwise by 270 degrees.