avec cette méthode tu as tous les angles possibles:
cf:
http://www.codyx.org/snippet_rotation-ellipse_99.aspx
Private Sub Command2_Click()
Picture1.ScaleMode = 3
Picture1.AutoRedraw = True
Timer1.Interval = 50
Timer1.Enabled = True
End Sub
Private Sub Timer1_Timer()
Dim x As Double
Dim y As Double
RotAng = RotAng + 2
RotRad = (RotAng / 180) * Pi
MyXForm.eM11 = Cos(RotRad)
MyXForm.eM12 = Sin(RotRad)
MyXForm.eM21 = -MyXForm.eM12
MyXForm.eM22 = MyXForm.eM11
Picture1.Cls
Call SetViewportOrgEx(Picture1.hDC, Picture1.ScaleWidth / 2, Picture1.ScaleHeight / 2, OldOrg)
Call SetGraphicsMode(Picture1.hDC, GM_ADVANCED)
Call SetWorldTransform(Picture1.hDC, MyXForm)
' trace ton graphe ici:
' exemple pour la fonction sinus
Picture1.Line (-Picture1.ScaleHeight / 2, 0)-(Picture1.ScaleHeight / 2, 0), vbGreen
For x = -3.14 To 3.14 Step 0.01
y = Sin(x)
Picture1.PSet (x * Picture1.ScaleWidth / 8, y * Picture1.ScaleHeight / 4), vbRed
Next
End Sub
Daniel