GAEã§ã¯ç»åã®å å·¥ãåºæ¥ã¾ããããªãµã¤ãºã¨ããã©ã¼ãããå¤æã¨ãããããã©ãã§ããããããªãã¤ããããã¾ããã
ããã§å®éã«ãã¤ãæä½ã§BMPããã¤ã¬ã¯ãã«ä½ãåºãã¦ããã®byte[]ãGAEã®Images APIã«ãããã¦PNGã«å¤æããåºåãã¦ã¿ãã
â¦ï¼åºåãããªãã
ã§ãã¨ã©ã¼ã¯åºã¦ãªãããã¡ããã¨PNGã¨ãã¦èªèããã¦ããããã¼ã«ã«ã®éçºç°å¢ã§ã¯åé¡ãªãåºåããã¦ããã®ã«ï¼ã©ããããµã¼ãã¼ã¨éçºãã¼ã«ã¨ã§å¦çã®å 容ã«éããããããããåãã«ããã°ããã®ã«ããã°ã ãªã
ãã®BMPã¯32bitBMPã§ä½ã£ã¦ãã(ãæ³åã®éã24bppã«ããªãã£ãã®ã¯ï¼ãã¤ãå¢çã§ããããã®ãé¢åã ã£ãã®ã§ãâ¦)ã®ã ãããããï¼
ã©ã¤ãã©ãªã¯å¤æ´ããã«æ¸ãè¾¼ã¿ã®ä¸ä½8ãããã«255ãæ¸ãè¾¼ãããã«ãµã¼ãã¬ããå´ã®ã½ã¼ã¹ãå¤æ´ãã¦ã¿ãã
ããã§ãã
ã©ãããä¸ä½8ããããαã¨ãã¦æ±ãããããé常BMPã®ä¸ä½8bitã¯ä½¿ãããªãï¼ã¢ããªãç¬èªã«ä½¿ããã¨ã¯ããï¼ã®ã§ãã¾ãã¿ã¦ããããã ã
éã«è¨ãã°ã¢ã«ãã¡ã使ããã¨ãããã¨ã§ãããã¯ããã§é¢ç½ãã¨ããã°ãããã¯ãããã
αå¤ãè¨å®ãããã©ãããèæ¯è²ã®è¨å®ãªã©ãã©ã¤ãã©ãªã«è¿½å ããããé»ãè¨å®ããã®ã«å
¨ã¦ã®ãã¯ã»ã«ã«0xff000000ãè¨å®ããã®ãã ããããã
ã¢ã«ãã¡å
¥ãã¦åºåããã¨ããã¹ãã¼ã¨ãã¤ãºã¿ãããªã®ããããBMPããPNGã¸ã®å¤æãªã®ã§ã©ãèãã¦ãå£åããã¨ã¯æããªãã®ã ããã©ããå
é¨ã§Î±ã¤ãJPEGãããã§å¤æå¦çãã£ã¦ãæãããã¼ãã
ã¨ãããããã¹ãã§ããããã«JSF 2.0ã®ãµã³ãã«ã®ããããã¼ã¸ã«è¿½å ãã¦ãããã赤éç·ã¨3æ¬ã®ç·ãå¼ãã¦ããã®ããããã¯ãã
http://shinsan-jsf2.appspot.com/
GAEã§ç»åãçæããã¨ããç¨éãããã以å¤ã«ããã¨ã¯ããã¾ãæããªãã®ã§å ¬éããªãã¦ãããããããã¯ã²ã¼ã çã§ãã¶ã使ããããªãã¨æã£ãã®ã§ããããåçã«faviconä½ãã»ããé¢ç½ãã®ãããããªãããã¡ãã®ã»ããããã楽ãªã¯ããªã®ã§ãã£ã¬ã³ã¸ããããã
ã¡ãªã¿ã«ãã®BMPçæå¦çã¯CPUãã¯ã¼ããããé£ã£ã¦ãã¾ããã7cpu_msã¨ç©ºservletã®ï¼åä½ãhtmlççæããã»ããã¯ããã«ãã·ã³ãã¯ã¼é£ããã¨ããã©ãã ããã·ã³ãã¯ã¼ç¡é§é£ããã¦ãããèãã¦ãã¾ã£ãã