Homothetic images : is this possible ?

Discussion in 'Questions (Windows Mobile)' started by origami, Apr 28, 2008.

  1. origami

    origami Member Licensed User

    Hello,

    Currently, the 3 images modes are :
    - cStretchImage
    - cCenterImage
    - cNormalImage

    Is there an option that would allow the image to be homothetically resized ?

    I hope I'm clear. If not, I'll try to explain with pictures.

    Thanks
     
  2. agraham

    agraham Expert Licensed User

    I am afraid that is not an English word that I recognise. :confused:
     
  3. origami

    origami Member Licensed User

    What I mean is to be able to use a "Homothetic transformation" (I checked in Wikipedia, so this one should exist ;-) )

    If I use the current "cStretchImage" mode, the proportions of the picture are changed to fill enterelly the image component.

    If I use cCenterImage or cNormalImage, the proportions are kept, but if the picture is bigger than the component, then only a portion of the picture will be displayed.

    What I would like is to be able to see the full picture, reduced so that it fits inside the component, but keeping the initial proportions (a square will remain square).

    Hope this makes sense !
     
  4. klaus

    klaus Expert Licensed User

    Look at the dzImage library there is a zoom function in.

    ZoomImage(sourceImage, Percent): Zooms an image Percent% of the original (Percent = 0 to 1000). Returns the Zoomed Image

    I am shure that this is what you are looking for.

    Best regards
     
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