0 Replies Latest reply on Jun 17, 2008 3:36 AM by Gregor Rot

    Text character resize

    Gregor Rot
      I would like to draw single characters of text and be able to position them on the stage, but even more important, scale them (width and height). I am trying to take the graphics from a label, like this (label1 is the label component):

      var bdata:BitmapData = new BitmapData(label1.width, label1.height);
      bdata.draw(label1);
      var bmap:Bitmap = new Bitmap(bdata);
      var m:Matrix = new Matrix();
      m.scale(factorx, factory);
      bmap.transform.matrix = m;

      but it doesn't scale the image - if i display the bmap inside an image, ie:

      image1.source = bmap;

      it's not scaled.

      Any ideas?

      tnx,
      Greg