0 Replies Latest reply on Oct 26, 2011 5:51 AM by mola2alex

    Image dimensions from ByteArray

    mola2alex Level 1

      I am wondering if there is any way to determine the width and height of an image that is decoded to a ByteArray (using Base64 decoder). For example in the below, any way to determine width and height values for 'decoded'?

      var decoded:ByteArray = Base64.decodeToByteArray(result.data[i].image);

      I am taking screen captures of the stage and storing them in an SQL DB.  It is easy to redraw it when the stage is fixed size but if I want to be able to take screen shots of other things that are more dynamic in nature, how can I determine the dimensions of the image to display them properly?