none
How can i get Image Width and Height ?

    Question

  • How can i get Image Width and Height , when i use downloader object to load image in XAML?

    function onCompleted(sender, eventArgs)
    {
        // Retrieve the Image object.
        var myImage = sender.findName("myImage");
    
        // Set the Source property to the contents of the downloaded object.
        myImage.setSource(sender);
    alert(myImage.Width);
    }

    I receive value 0, but image loaded in <Image> tag.

    Thanks

     

     

    Friday, March 16, 2007 9:22 AM