locked
Get Image size in Pixel RRS feed

  • Question

  • User31568 posted

    Hi,

    How can I get the displayed image size in pixels?

    What I mean by displayed size is not the real size of the image but the on screen size so if the image is stretched, centered, landscape, etc then I need to get that displayed size in pixels

    Thanks, Jassim

    Friday, August 21, 2020 11:48 PM

Answers

  • User230062 posted

    Considering a control Image, you can access Width and Height properties and get the values in pixels.

    // Width and Height in pixels var width = MyImage.Width; var height = MyImage.Height;

    • Marked as answer by Anonymous Thursday, June 3, 2021 12:00 AM
    Saturday, August 22, 2020 12:38 PM