Autor Beitrag
Anfänger
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128

WinXP
D3 Prof
BeitragVerfasst: Mo 15.03.04 18:15 
Ich möchte ein kleines Image in ein großes einfügen,
wobei mindestens bei einem die sichtbare Größe durch stretch verändert wurde.
Nun soll die picture Größe des kleinen Bildes so geändert werden, dass, wenn ich es mit dem Befehl "Image1.Canvas.Draw(30,20,Image2.Picture.Graphic);"einfüge, die reingemalte Größe gleich der Größe des Images entspricht.

Ich weiß:
Größe des Image herausfinden:
Image2.Picture.Width
Image2.Picture.Height

Aber wie verändere ich die Werte?
Andreas Pfau
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 997



BeitragVerfasst: Mo 15.03.04 20:33 
Hallo,

habe da eigentlich nix verstanden, aber ich denke mal, du willst ganz einfach ein Bild beim reinzeichnen skalieren, also z.B.ein 100x100 Bild mit 50x50 reinpainten. Wenn dem so sei (???) schau mal nach tCanvas.StretchDraw().

_________________
Life is a bad adventure, but the graphic is really good!
Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128

WinXP
D3 Prof
BeitragVerfasst: Mo 15.03.04 23:02 
Ich gebe zu, etwas kompliziert geschrieben, aber letzendlich war es genau dass, was ich suchte!

Danke :!:
Anfänger Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 128

WinXP
D3 Prof
BeitragVerfasst: Di 23.03.04 16:26 
Jetzt hab ich's eigentlich.
Nur, wenn ich z.B. eingebe:
Image1.Canvas.StretchDraw(Rect(0,0,50,50),Image2.Picture);
Malt er zwar das Bild in das andere hinein, aber manchmal unfollständig oder in falschen Farben.
Das Passiert aber nur, wenn ich transperent gleich True habe, was ich aber Brauche.
Das kann man doch bestimmt irgendwie verhindern. Oder?