Rotationspunkt setzen für eine Grafik 64x64 für Setrotation

Übersicht BlitzMax, BlitzMax NG Allgemein

Neue Antwort erstellen

 

funkheld

Betreff: Rotationspunkt setzen für eine Grafik 64x64 für Setrotation

BeitragSo, Aug 14, 2016 17:28
Antworten mit Zitat
Benutzer-Profile anzeigen
Hallo, guten tag.

Wie kann ich bitte bei einem Image einen bestimmten Rotationspunkt setzen für Setrotation?
Bild ist 64x64 Pixel.


Code: [AUSKLAPPEN]

Graphics 600,600,0

Global rot:Int
Global bild=LoadImage( "d:/blitzmax/grafik/auto.bmp" )

SetMaskColor 0,0,0
SetColor(255,255,255)

While Not KeyDown(Key_Escape)
  cls
  If KeyDown( Key_Up ) Then rot = rot + 1
  If KeyDown( Key_Down ) Then rot = rot - 1

  SetRotation( rot )
  drawimage(bild,300,300 )

  Flip
Wend


Danke.
Gruss

Midimaster

BeitragSo, Aug 14, 2016 19:58
Antworten mit Zitat
Benutzer-Profile anzeigen
SetHandle(x%,y%) für DrawOval, DrawText, etc...

oder

SetImageHandle(image:TImage,X5,y%) für Images
Gewinner des BCC #53 mit "Gitarrist vs Fussballer" http://www.midimaster.de/downl...ssball.exe
 

funkheld

BeitragSo, Aug 14, 2016 22:24
Antworten mit Zitat
Benutzer-Profile anzeigen
Hallo, grüss dich.
Danke für die Hilfe.
Klappt wunderbar.

Gruss

Neue Antwort erstellen


Übersicht BlitzMax, BlitzMax NG Allgemein

Gehe zu:

Powered by phpBB © 2001 - 2006, phpBB Group