Autor Beitrag
lemmond1976
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 66



BeitragVerfasst: Do 17.04.03 10:48 
Hallo,

irgendwie bekomme ich es nicht auf die Reihe, Änderungen
des Image-Inhalts zu speichern.
Nachdem ich ein Bild dynamisch verkleinert habe und es auch so in der Image-Kompo angezeigt wird, möchte ich es genauso abspeichern.

ausblenden Quelltext
1:
Image1.Picture.SaveToFile('blabla')					


speichert stattdessen nur das Originalbild noch einmal ab. Ich möchte aber die Änderungen speichern.
Wie mache ich das ?

Gruss
Gunnar
Klabautermann
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Veteran
Beiträge: 6366
Erhaltene Danke: 60

Windows 7, Ubuntu
Delphi 7 Prof.
BeitragVerfasst: Do 17.04.03 10:52 
Hallo,

es währe wichtig zu wissen, wie du das Bild verkleinert hast.

Gruß
Klabautermann
lemmond1976 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 66



BeitragVerfasst: Do 17.04.03 10:59 
hi, ich habe einfach die Eigenschaft Proportional auf True gesetzt
und zum Beispiel bei Bildern im Querformat eine Breite von 300 Pixeln vorgeschrieben.

Gruss
Gunnar
lemmond1976 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 66



BeitragVerfasst: Do 17.04.03 23:57 
niemand eine Idee oder bin ich zu blöd ?
UGrohne
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Veteran
Beiträge: 5502
Erhaltene Danke: 220

Windows 8 , Server 2012
D7 Pro, VS.NET 2012 (C#)
BeitragVerfasst: Fr 18.04.03 00:01 
Du hast dem image eine Breite von 300 Pixeln gegeben? Und Proportional auf True gesetzt?

Das funktioniert nicht, da er ja das Bild an sich nicht vergrößert. Proportional ist wie eine Art Zoom-Funktion in einer Bildbearbeitung, da ersetzen dann z.B. nur 2 Pixel einen. Aber der eigentlich Wert des Bildes wird nicht geändert. Dazu musst Du einen anderen Weg gehen, und zwar direkt über das Bitmap, nicht über das TImage-Objekt.
Mehr weiß ich aber grad net, ich schau mal, was ich finde.

Gruß
lemmond1976 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 66



BeitragVerfasst: Fr 18.04.03 00:05 
@ugrohne: thanx
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Fr 18.04.03 03:20 
Hi,

das einfachste ist wohl wenn du einfach das Canvas vom TImage auf ein TBitmap kopierst und dann dieses TBitmap abspeicherst.. ;)

Weißt du wie man das macht?? Wenn nich, einfach nochmal fragen, dann zeig ich's dir :)

Au'revoir,
Aya~

_________________
Aya
I aim for my endless dreams and I know they will come true!
lemmond1976 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 66



BeitragVerfasst: Fr 18.04.03 10:29 
hi aya, jo, das weiß ich, okay, dann mache ich es so.
Danke. Gruss Gunnar