Assign a pixel value using a number that specifies an Alpha channel of CC
package{
import flash.display.*;
public class Main extends Sprite{
public function Main(){
var imgData:BitmapData = new BitmapData(20, 20, true, 0x660000FF);
imgData.setPixel(0, 0, 0xFFFFFF);
imgData.setPixel(0, 0, 0xCCFFFFFF);
}
}
}
Related examples in the same category