Welcome to the dBforums forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions, articles and access our other FREE features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload your own photos and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact support.

If you prefer not to see double-underlined words and corresponding ads, place your cursor
here for ContentLink opt out.

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, 08: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, 10: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, 15: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, 16: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

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