Image aspect ratio

Discussion in 'Questions (Windows Mobile)' started by tremara1, Jan 17, 2009.

  1. tremara1

    tremara1 Active Member Licensed User

    I don't know if anyone has done this, is there a way to get the aspect ratio of an image and adjust one of the image control attributes (height or width) to match the the original image ratio. I want to be able to use images of varying sizes stored in a db and display them when required. The images would need to be displayed in correct ratio to show accurately. Just wondering.......

    tremara1
    Ballarat Victoria Australia
     
  2. Cableguy

    Cableguy Expert Licensed User

    I am almost sure one of the image libs as properties that return the image original size...
    then its a case of doing the raths to find the ratio and use it in customizing the image control...

    Edit:
    Found it...
    ImageLibEx.dll->BitmapEx Object has Heigth and width props...
     
    Last edited: Jan 17, 2009
  3. tremara1

    tremara1 Active Member Licensed User

    Done it again

    Thanks I thought it might be one of the libraries, I guess I was a bit lazy..but I knew one of you guys would have it.

    thanks again

    tremara1

    Ballarat Victoria Australia
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice