Autor Beitrag
Borlox
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 191

Win XP
Delphi 6 Enterprise
BeitragVerfasst: Do 26.12.02 13:23 
Hi Leute,

wie kann ich am leichtesten ein Bild unter DelphiX z.B. um 22 Grad drehen lassen?
Ich habe im Forum sehr viele Themen gefunden, aber in allen steht immer nur, dass es Möglich ist, aber leider nicht wie man das realisieren kann!

Danke
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Do 26.12.02 14:46 
Mit ImageList.Items[123].DrawRotate; (Oder ähnlich, auf jeden Fall DrawRotate :)
Borlox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 191

Win XP
Delphi 6 Enterprise
BeitragVerfasst: Do 26.12.02 16:49 
Titel: DrawRotate
Die Funktion ist sicherlich die richtige, aber hat irgend jemand eine Ahnung, wie man das ganze einstellen muss? Ich bekomme zwar keine Fehlermeldung, aber es zeichnet auch kein Bild!

Hiiiiiiiiiiiiiiiiiiiilllllllllllllllllffffffffffffffffffffffeeeeeeeeeeee!!
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Do 26.12.02 17:58 
Ehe wir die Kristallkugel rausholen, zeig doch einfach mal, was du bis jetzt hast?
Borlox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 191

Win XP
Delphi 6 Enterprise
BeitragVerfasst: Do 26.12.02 18:16 
Titel: schwer
Ich habe es mit dem folgenden Code versucht! Das Bild ist 60 Pixel breit und 60 Pixel hoch.
ausblenden Quelltext
1:
DXImageList2.Items[0].DrawRotate(DXDraw1.Surface,100,100,60,60,0,30,30,30);					


Wenn ich das Bild einfach so zeichne (DXImageList2.Items[0].draw(DXDraw1.Surface, 897, 593, 0)) ist das auch gar kein Problem, aber mit dem Rotate bekomme ich das einfach nicht hin![/code]
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Do 26.12.02 23:06 
DXDraw1.Flip; hast aber aufgerufen?
Borlox Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 191

Win XP
Delphi 6 Enterprise
BeitragVerfasst: Fr 27.12.02 10:44 
Titel: Klar
Klar habe ich das aufgerufen!
Ich habe ja auch genau in der Zeil über dem Rotate das gleiche Bild an einer anderen Stelle eingebunden, ohne Probleme, aber das Rotate klappt einfach nicht!
fcg
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 360

WinXP
D3 Prof, D6 Pers
BeitragVerfasst: Di 31.12.02 17:56 
versuch doch dein bild als sprite zu drehen mit angle

deklarier das ganzee dann etwa so:

ausblenden Quelltext
1:
2:
type
 bild = class (TImageSpriteex)


wichtig ist das ex hinter imagesprite!
dann später mit

bild.angle:=40 drehen.

dann gehts.

_________________
.: Wer für alles offen ist, kann nicht ganz dicht sein! :.