var myFile:File = new File("./test.jpg");
var myFileStream1:FileStream = new FileStream();
myFileStream1.open(myFile, FileMode.READ);
var byte:ByteArray = new ByteArray();
myFileStream1.readBytes(byte,0,byte.bytesAvailable);
myFileStream1.close();
现在如何将字节变量添加到画布?例如 var canvas:Canvas = new Canvas(); canvas.addChild(字节); 是否可以将 ByteArray 添加到画布?