亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? nokiagraphicstest.java

?? 大量j2me源代碼
?? JAVA
字號:
import com.nokia.mid.ui.FullCanvas;
import com.nokia.mid.ui.DirectGraphics;
import com.nokia.mid.ui.DirectUtils;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import java.io.IOException;

/**
 * A demonstration MIDlet for the pixel manipulation features in the Nokia UI.
 * @author Martin J. Wells
 */
public class NokiaGraphicsTest extends MIDlet
{
   private MyCanvas myCanvas;

   /**
    * A custom FullCanvas which renders the manipulated image.
    */
   class MyCanvas extends FullCanvas
   {
      private Image redStripeImage = null;

      /**
       * The constructor loads up the image (make sure redstripe.png in in the
       * JAR for this to work!)
       */
      public MyCanvas()
      {
         try
         {
            redStripeImage = Image.createImage("/redstripe.png");
         }
         catch (IOException ioe)
         {
            System.out.println("unable to load image");
         }
      }

      /**
       * Overriden Canvas class paint method carries out the pixel manipulation.
       * For simplicity I'm calling this code from within the paint method.
       * Normally this is going to be too slow to do in real time so you'll
       * want to pre-manipulate the images and then just render them in paint.
       * @param graphics
       */
      protected void paint(Graphics graphics)
      {
         // Get the Nokia DirectGraphics object
         DirectGraphics dg = DirectUtils.getDirectGraphics(graphics);
         graphics.setColor(0, 0, 0);
         graphics.fillRect(0, 0, getWidth(), getHeight());

         // draw the original red striped graphics
         dg.drawImage(redStripeImage, 0, 0, Graphics.TOP|Graphics.LEFT, 0);

         // Get the native pixel format
         int pixFormat = dg.getNativePixelFormat();

         // make sure we have a pixel format we know how to handle properly
         if (pixFormat == DirectGraphics.TYPE_USHORT_444_RGB)
         {
            int imgWidth=redStripeImage.getWidth();
            int imgHeight=redStripeImage.getHeight();
            short pixels[] = new short[imgWidth*imgHeight];
            dg.getPixels(pixels, 0, imgWidth, 0, 0, imgWidth, imgHeight,
                         DirectGraphics.TYPE_USHORT_444_RGB);

            // A short is a 2 byte or 16 bit type. If the format for the graphics is
            // 444 then 12 bits are used for color (the high order four bits are
            // just zero); 0000RRRRGGGGBBBB

            // To extract the red component we do a bitwise AND using
            // 0000111100000000 = 0x0F00

            for (int y=0; y < imgHeight; y++)
            {
               for (int x = 0; x < imgWidth; x++)
               {
                  int a = (y * imgWidth) + x;
                  short pixel = pixels[a];

                  // extract red, green and blue components
                  short red = (short)(pixel & 0x0F00);
                  short green = (short)(pixel & 0x00F0);
                  short blue = (short)(pixel & 0x000F);

                  if (pixel == 0x0F00)
                     pixels[a] = (short)0x00F0; // change to green
               }
            }

            dg.drawPixels(pixels, false, 0, imgWidth, 60, 0, imgWidth, imgHeight,
                          0, DirectGraphics.TYPE_USHORT_444_RGB);

         }
      }

   }

   /**
    * MIDlet constructor that just creates the custom FullCanvas.
    */
   public NokiaGraphicsTest()
   {
      myCanvas = new MyCanvas();
   }

   /**
    * Called by the Application Manager when the MIDlet is starting or resuming
    * after being paused. In this example it acquires the current Display object
    * and uses it to set the Canvas object created in the MIDlet constructor as
    * the active Screen to display.
    * @throws MIDletStateChangeException
    */
   protected void startApp() throws MIDletStateChangeException
   {
      Display.getDisplay(this).setCurrent(myCanvas);
   }

   /**
    * Called by the MID's Application Manager to pause the MIDlet. A good
    * example of this is when the user receives an incoming phone call whilst
    * playing your game. When they're done the Application Manager will call
    * startApp to resume. For this example we don't need to do anything.
    */
   protected void pauseApp()
   {
   }

   /**
    * Called by the MID's Application Manager when the MIDlet is about to
    * be destroyed (removed from memory). You should take this as an opportunity
    * to clear up any resources and save the game. For this example we don't
    * need to do anything.
    * @param unconditional if false you have the option of throwing a
    * MIDletStateChangeException to abort the destruction process.
    * @throws MIDletStateChangeException
    */
   protected void destroyApp(boolean unconditional) throws MIDletStateChangeException
   {
   }
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧美福利一区二区| 亚洲欧美日本在线| 日韩亚洲欧美综合| 日韩一区二区影院| 制服视频三区第一页精品| 欧美精品tushy高清| 欧美日韩成人高清| 538在线一区二区精品国产| 欧美在线视频不卡| 欧美精品色一区二区三区| 欧美一卡二卡在线| 精品成人私密视频| 亚洲国产精品成人久久综合一区| 国产欧美综合在线观看第十页| 国产日韩欧美制服另类| 中文字幕在线不卡视频| 亚洲精品视频一区| 午夜一区二区三区视频| 日韩不卡一区二区三区 | 蜜桃视频一区二区| 久久99精品国产| 狠狠色丁香久久婷婷综| 国产999精品久久久久久| 99综合影院在线| 欧美在线观看18| 欧美一区二区精品| 久久精品欧美日韩| 一区二区三区欧美激情| 亚洲成av人片| 国产综合色视频| 99国产精品久久久久久久久久久| 欧美亚洲一区二区在线观看| 91精品婷婷国产综合久久| 久久综合久久综合九色| 中文字幕在线不卡一区| 日韩精品亚洲专区| 国产69精品久久777的优势| 在线精品视频免费播放| 欧美草草影院在线视频| 国产精品九色蝌蚪自拍| 亚洲成人动漫在线观看| 精品在线亚洲视频| 色又黄又爽网站www久久| 日韩三级在线免费观看| 亚洲欧洲日本在线| 免费一级片91| 91丨porny丨国产| 欧美一区二区三区啪啪| 国产欧美日韩中文久久| 亚洲午夜久久久| 国产超碰在线一区| 欧美日韩免费一区二区三区| 久久夜色精品国产欧美乱极品| 亚洲码国产岛国毛片在线| 免费观看30秒视频久久| 91丨porny丨国产入口| 337p粉嫩大胆噜噜噜噜噜91av| 亚洲猫色日本管| 国产电影一区二区三区| 欧美久久久久中文字幕| 国产精品国产三级国产普通话蜜臀| 亚洲成人av电影| a级精品国产片在线观看| 日韩免费看的电影| 亚洲综合色视频| 高清不卡在线观看| 日韩欧美电影一二三| 一区二区三区鲁丝不卡| 粉嫩一区二区三区性色av| 91精品国产综合久久久久久久久久| 国产精品成人一区二区三区夜夜夜| 老鸭窝一区二区久久精品| 欧美在线一区二区| 亚洲婷婷综合色高清在线| 蜜桃精品视频在线| 欧美日韩一区二区电影| 最新国产の精品合集bt伙计| 一区二区三区91| 裸体健美xxxx欧美裸体表演| 91美女在线视频| 日本一区免费视频| 久久国产精品99精品国产| 欧美亚洲国产bt| 亚洲欧美激情在线| 成人国产视频在线观看 | 亚洲欧美日韩人成在线播放| 狠狠色丁香九九婷婷综合五月| 欧美一区三区四区| 午夜精品久久久久久| 欧美性猛交xxxxxxxx| 亚洲伦理在线精品| gogo大胆日本视频一区| 国产精品少妇自拍| 国产a久久麻豆| 国产欧美精品在线观看| 国产一区在线观看视频| 精品久久久久一区二区国产| 蜜桃视频免费观看一区| 日韩欧美高清dvd碟片| 麻豆传媒一区二区三区| 91麻豆精品国产综合久久久久久 | 国产成人免费9x9x人网站视频| 精品日韩一区二区三区| 久久精品国产秦先生| 日韩欧美国产综合| 九九精品一区二区| 欧美精品一区二区三区高清aⅴ| 蜜臀精品一区二区三区在线观看 | 在线精品视频一区二区三四| 亚洲美女视频一区| 欧美性受极品xxxx喷水| 亚洲午夜精品久久久久久久久| 欧美在线播放高清精品| 亚洲.国产.中文慕字在线| 欧美丰满美乳xxx高潮www| 视频一区二区欧美| 精品对白一区国产伦| 国内精品伊人久久久久av影院| 久久久久久电影| 成人黄色小视频| 一区二区三区不卡在线观看| 欧美日韩国产高清一区二区| 日韩成人免费在线| 26uuu久久综合| 成人国产精品免费网站| 亚洲乱码国产乱码精品精98午夜| 欧美自拍丝袜亚洲| 奇米四色…亚洲| 欧美激情自拍偷拍| 91福利精品第一导航| 日韩二区三区四区| 久久精品视频在线免费观看| 不卡免费追剧大全电视剧网站| 亚洲精品乱码久久久久久黑人| 欧美日韩一卡二卡三卡| 久久99热这里只有精品| 国产精品乱码人人做人人爱| 在线看日本不卡| 天天爽夜夜爽夜夜爽精品视频| 亚洲精品久久久蜜桃| 亚洲国产高清在线| 亚州成人在线电影| 日韩欧美另类在线| 岛国av在线一区| 夜夜爽夜夜爽精品视频| 日韩视频123| 91碰在线视频| 看片网站欧美日韩| 亚洲免费观看高清完整版在线观看 | 日韩一二三四区| av一区二区不卡| 秋霞成人午夜伦在线观看| 国产精品伦理在线| 91精品国产91久久久久久最新毛片 | 国产成人免费视频网站| 亚洲高清视频在线| 国产视频一区二区在线| 欧美视频中文一区二区三区在线观看| 久久se这里有精品| 一区二区三区日韩欧美| 久久综合九色综合欧美98| 在线免费av一区| 国产成人午夜视频| 日韩黄色一级片| 亚洲激情图片小说视频| 久久久精品国产免大香伊| 欧美三级视频在线| 成人h版在线观看| 精品中文字幕一区二区小辣椒| 亚洲综合色区另类av| 国产欧美日韩久久| 日韩欧美二区三区| 欧美日韩精品三区| 99久久免费国产| 国产盗摄精品一区二区三区在线| 日韩vs国产vs欧美| 亚洲精品ww久久久久久p站| 国产日产精品一区| 精品国产3级a| 777奇米成人网| 在线视频国产一区| youjizz久久| 高潮精品一区videoshd| 久久精品免费观看| 偷拍一区二区三区| 亚洲狠狠爱一区二区三区| 亚洲欧美激情一区二区| 国产精品私人影院| 国产三级精品三级在线专区| 日韩欧美一区二区不卡| 欧美精品视频www在线观看| 91精品办公室少妇高潮对白| 成人av资源站| 不卡欧美aaaaa| 成人av综合在线| 波多野结衣中文字幕一区| 国产精品自拍网站| 国产精品资源在线| 国产剧情一区二区三区| 国产精品一区二区久激情瑜伽|