Autor Beitrag
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Mo 14.10.02 02:20 
Hi,

kann ich irgendwie die Position des Pictures auf dem TImage rausbekommen?

Wenn ich z.B. ein TImage riesig groß ziehe und ein kleine Bild reinlade ist das Bild ja nur in der Ecke...

wenn ich nun noch Center=true mache ist es in der mitte, ich würde jetzt ganz gern einen rahmen um das Bild herumziehen, nur weiß ich nicht wie ich rausbekomme, an welchen Koordinaten das Bild ist...

Au'revoir,
Aya
Millo
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 147



BeitragVerfasst: Mo 14.10.02 03:16 
Moin

Wie man das schön und sauber machen könnte kann ich dir leider nicht sagen aber so müsste es auch gehen:

Um zu gucken wie weit es von der Linken Seite weg ist:
ausblenden Quelltext
1:
(Image1.Width div 2)-(Image1.Picture.Graphic.Width div 2)					


Um zu gucken wie weit es von Oben weg ist:
ausblenden Quelltext
1:
(Image1.Height div 2)-(Image1.Picture.Graphic.Height div 2)					
Aya Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Mo 14.10.02 03:21 
und wenn ich z.B. mit Proportional arbeite um ein bild was zu groß ist runterzuskalieren..? :)