Der HotSpotChanged-Event wird durch den Anwender ausgelöst, wenn dieser die Position des HotSpots neu bestimmt hat. Die Position des HotSpots kann nun auf das Bild übertragen werden.
Syntax | |||
HotSpotChanged(Ambient, X, Y) | |||
Rückgabewert | |||
Kein | |||
Parameter | |||
Name |
Typ |
Übergabe |
Beschreibung |
Ambient |
Ambient |
ByVal |
Umgebungsinformationen |
X |
Double |
ByVal |
Die Pixelposition in x-Richtung |
Y |
Double |
ByVal |
Die Pixelposition in y-Richtung |
Die Übertragung des HotSpots in das Bild kann folgendermaßen in der Eventfunktion ausgeführt werden:
Img.BeginModify
Img.HotSpotX := x
Img.HotSpotY := y
Img.EndModify