Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2002
    Location
    Philippines
    Posts
    15

    Unanswered: does any one know how to rotate image by 90 and 270

    i need to rotate an image directly from the picturebox to 90 and 270 degrees i have downloaded several code but none of these solved my problem it's either the code is slow or the is not appropriate

    please help

  2. #2
    Join Date
    Sep 2003
    Location
    Cincinnati, Oh USA
    Posts
    203

    Re: does any one know how to rotate image by 90 and 270

    This depends on what you want to do. If it's a static image, simply use a graphics program, like photoshop and rotate the image and save with a new name and show. If on the other hand, you want the image to change rotation after an event, then make two of the images one at 90 and the second at 270 and then display the first on load and second image after the event (ie click or mouse down).

    Originally posted by buchokoy
    i need to rotate an image directly from the picturebox to 90 and 270 degrees i have downloaded several code but none of these solved my problem it's either the code is slow or the is not appropriate

    please help
    Rick Knight
    KnightShift Office Solutions and Horse Breaking
    VB, VBA, FileMaker, Access Solutions, Web Solutions

  3. #3
    Join Date
    Oct 2002
    Location
    Philippines
    Posts
    15
    i need to do this on vb code not on graphic application

  4. #4
    Join Date
    Sep 2003
    Location
    Cincinnati, Oh USA
    Posts
    203
    I understand that you want to do this in visual basic using code. What I'm saying is that you'll need two images for the vb code to use in order to get the rotation effect. Something like this:

    Private Sub Form_Load()
    Picture1 = Image1
    End Sub
    -
    Private Sub Command1_Click() 'This can be any event
    If Picture1 = Image1 Then
    Picture1 = Image2
    ElseIf Picture1 = Image2 Then
    Picture1 = Image1
    End If
    End Sub

    Originally posted by buchokoy
    i need to do this on vb code not on graphic application
    Rick Knight
    KnightShift Office Solutions and Horse Breaking
    VB, VBA, FileMaker, Access Solutions, Web Solutions

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •