据说是绘制bimap最快的方法

  • outputBitmapData.lock();
  • for(y = 0; y < STAGE_HEIGHT; ++y)
  • {
  •   for(x = 0; x < STAGE_WIDTH; ++x)
  •   {
  •     r = (t*100 + 255 * x / STAGE_WIDTH)%255;
  •     g = 180;
  •     b = 180;
  •  
  •     outputBitmapData.setPixel(x, y, (r<<16) + (g<<8) + b);
  •   }
  • }
  • outputBitmapData.unlock();
  • posted @ 2009-04-29 14:23  vily_雷  阅读(208)  评论(0)    收藏  举报