none
Zooming and Rotating a Shape/Image RRS feed

Answers

  • Rene,

    In your program you are trying to rotate the reference to the sun image, not the sun image itself.  To create an object that holds the actual sun image, assign it when you issue the shapes.AddImage command...

     

    sun=ImageList.LoadImage("http://www.wikispaces.com/file/view/504px-Sol_de_Mayo-Bandera_de_Argentina_svg.png/33732763/504px-Sol_de_Mayo-Bandera_de_Argentina_svg.png")

     

    sun2=Shapes.AddImage(sun)

    Shapes.Zoom(sun2,0.2,0.2)


    and...

    Shapes.Rotate(sun2,angle)

    • Proposed as answer by litdevModerator Tuesday, April 6, 2010 8:58 PM
    • Marked as answer by rdohmen Wednesday, April 7, 2010 12:40 AM
    Tuesday, April 6, 2010 10:38 AM

All replies

  • Rene,

    In your program you are trying to rotate the reference to the sun image, not the sun image itself.  To create an object that holds the actual sun image, assign it when you issue the shapes.AddImage command...

     

    sun=ImageList.LoadImage("http://www.wikispaces.com/file/view/504px-Sol_de_Mayo-Bandera_de_Argentina_svg.png/33732763/504px-Sol_de_Mayo-Bandera_de_Argentina_svg.png")

     

    sun2=Shapes.AddImage(sun)

    Shapes.Zoom(sun2,0.2,0.2)


    and...

    Shapes.Rotate(sun2,angle)

    • Proposed as answer by litdevModerator Tuesday, April 6, 2010 8:58 PM
    • Marked as answer by rdohmen Wednesday, April 7, 2010 12:40 AM
    Tuesday, April 6, 2010 10:38 AM
  • Thanks, that did the trick!

    Tuesday, April 6, 2010 11:07 AM