locked
shuffle pictures and shuffle rotate

    Question

  • Any one out there can help me !!!

     

    I had a project with pictures, that I like to shuffle into TWO way

    When I clicked SHUFFLE button - shuffle all the pictures and shuffle ROTATE

     

    PictureBox1.Image.RotateFlip(RotateFlipType.Rotate180FlipNone0

    pictureBox1.invalidate

     

    thanks

     

     

     

    Tuesday, January 08, 2008 5:15 PM

Answers

  •  oscarjaime wrote:

    When I clicked SHUFFLE button - shuffle all the pictures and shuffle ROTATE

    ...

    My question:  how can I make to gnerate a ROTATE random (shuffle) Also

     

    Hi Oscar,

     

    Please check code sample in your another thread about:

    How to rotate an image in random PictureBox control

    How to rotate an image in random/any angle

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2643597&SiteID=1
    Monday, January 14, 2008 8:19 AM

All replies

  • This problem statement is really unclear.

    Tuesday, January 08, 2008 6:08 PM
  • the issue is if any one que can recommend me a code for this task!!!

     

    Tuesday, January 08, 2008 6:11 PM
  • I think what Renee might mean is that the task itself is not clear.
    Tuesday, January 08, 2008 6:34 PM
  •  

    "can recommend me a code for this task!!!"

     

    There is no such thing as "a code"  or "codes"  - it is ALWAYS spoken of as "code"

    Tuesday, January 08, 2008 6:42 PM
  • These what I have:

    Dim RandomObject As New Random

     

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles.Button1

    DisplayPicture(picture1)

    DisplayPicture(picture2)

    DisplayPicture(picture3)

    DisplayPicture(picture4)

     

    picture1.RotateFlip(RotateFlipType.Rotate180FlipNone)

    picture1.Invalidate()

    picture2.RotateFlip(RotateFlipType.Rotate180FlipNone)

    picture2.Invalidate()

    picture3.RotateFlip(RotateFlipType.Rotate180FlipNone)

    picture3.Invalidate()

    picture4.RotateFlip(RotateFlipType.Rotate180FlipNone)

    picture4.Invalidate()

     

    Sub DisplayPicture(ByVal a As PictureBox)

    Dim face As Integer = randomObject.Next(1, 73)   ' generate random integer in range 1 to 72

     

    a.Image = Image.FormFile("C:\projects\pictures\a" & face & ".gif")

     

    My question:  how can I make to gnerate a ROTATE random (shuffle) Also

     

    My Regards

     

    oscar

    Tuesday, January 08, 2008 7:11 PM
  •  oscarjaime wrote:

    When I clicked SHUFFLE button - shuffle all the pictures and shuffle ROTATE

    ...

    My question:  how can I make to gnerate a ROTATE random (shuffle) Also

     

    Hi Oscar,

     

    Please check code sample in your another thread about:

    How to rotate an image in random PictureBox control

    How to rotate an image in random/any angle

    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=2643597&SiteID=1
    Monday, January 14, 2008 8:19 AM