dt1991
import flash.display.Bitmap;
import flash.display.BitmapData;
import flash.text.TextField;

var tf: TextField = new TextField();
tf.text = "bitmap
 text";

var myBitmapData: BitmapData = new BitmapData(80,
	20);
myBitmapData.draw(tf);
var bmp: Bitmap = new Bitmap(myBitmapData);
this.addChild(bmp);
bmp.x = stage.stageWidth / 2 -
	bmp.width / 2;
bmp.y = stage.stageHeight / 2 -
	bmp.height / 2;

  

分类:

技术点:

相关文章:

  • 2021-09-19
  • 2021-09-06
  • 2021-11-23
  • 2021-07-05
  • 2021-10-17
  • 2021-11-14
  • 2021-04-05
  • 2021-09-04
猜你喜欢
  • 2021-12-21
  • 2021-11-04
  • 2021-11-15
  • 2021-12-13
  • 2021-10-18
  • 2021-05-08
  • 2021-04-03
相关资源
相似解决方案