If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > does any one know how to rotate image by 90 and 270

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-30-03, 07:08
buchokoy buchokoy is offline
Registered User
 
Join Date: Oct 2002
Location: Philippines
Posts: 15
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
Reply With Quote
  #2 (permalink)  
Old 11-30-03, 09:12
RickKnight RickKnight is offline
Registered User
 
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).

Quote:
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
Reply With Quote
  #3 (permalink)  
Old 12-04-03, 14:17
buchokoy buchokoy is offline
Registered User
 
Join Date: Oct 2002
Location: Philippines
Posts: 15
i need to do this on vb code not on graphic application
Reply With Quote
  #4 (permalink)  
Old 12-04-03, 15:49
RickKnight RickKnight is offline
Registered User
 
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

Quote:
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
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On