Translate

> > pixel value to RGB value extract

pixel value to RGB value extract

Posted on Saturday, October 1, 2011 | No Comments

var pixel:uint = bitmap.bitmapData.getPixel(i,j);
 var alpha:uint = pixel >> 24 & 0xff;
  var red:uint = pixel >> 16 & 0xff;
  var green:uint = pixel >> 8 & 0xff;
var blue:uint = pixel & 0xff;

Leave a Reply

Powered by Blogger.