Autor Beitrag
fcg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 360

WinXP
D3 Prof, D6 Pers
BeitragVerfasst: So 07.07.02 15:08 
hallo leute

in delphi x drhene ich bilder nach rechts mit folgenden Anweisungen:
ausblenden Quelltext
1:
2:
3:
 DXImageList1.Items[0].DrawRotateAlpha(DXDraw1.Surfacess, xpos,ypos, 20, 48, 0, 0.5, 0.5, FAngle, Trunc(Sin256(FAngle)*626+627));
  Inc(FAngle);
  DXDraw1.Flip;

nun meine frage? wie drehe ich mein bild, in die andere Richtung??

mfg
fcg
MathiasH
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 699

WinXP, Win98SE, Debian, Win95
D5 Stand, D6 Prof
BeitragVerfasst: So 07.07.02 19:21 
Ganz einfach
vollkreis - angle
Achtung: du musst das winkelmaß beschten! beim Bogenmaß(Delphi--"rad") ist ein vollkreis z.b. 2Pi, im normalen system 360°

Mathias

_________________
"Viel von sich reden, kann auch ein Mittel sein, sich zu verbergen."
Friedrich Nietzsche
fcg Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 360

WinXP
D3 Prof, D6 Pers
BeitragVerfasst: So 07.07.02 20:28 
:cry: was?? habe ich nciht ganz verstanden. was soll ich ändern??
MathiasH
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 699

WinXP, Win98SE, Debian, Win95
D5 Stand, D6 Prof
BeitragVerfasst: Mo 08.07.02 14:56 
wenn das winkelmaß rad ist dann
ausblenden Quelltext
1:
Angle := 2 * pi - Angle;					

Achtung: ich glaube delphi x arbeitert nicht mit 360°=2 * Pi also anstatt dessen einen vollkreis einsetzen(in DX Maß)

_________________
"Viel von sich reden, kann auch ein Mittel sein, sich zu verbergen."
Friedrich Nietzsche