Autor Beitrag
Alibi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Di 11.02.03 19:29 
Hi,
ich will ein TImage als JPG speichern.
Das klappt auch so hervorragend:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
var
  JPG: TJPEGImage;
.
.
.

      JPG := TJPEGImage.Create;
      JPG.Assign(Image.Picture.Bitmap);
      JPG.CompressionQuality := 90;
      JPG.SaveToFile(SaveDialog.FileName);
      JPG.Free;

Bis auf eine Kleinigkeit... Das JPG ist (teilweise?) farbverfälscht. Aus einem ganz normalem clRed wird eine Art Braun. Was kann ich dagegen tun?
Aya
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1964
Erhaltene Danke: 15

MacOSX 10.6.7
Xcode / C++
BeitragVerfasst: Di 11.02.03 19:43 
Hi,

versuch es mal so:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
var 
  JPG: TJPEGImage; 




      JPG := TJPEGImage.Create; 
      JPG.Assign(Image.Picture.Bitmap); 
      JPG.CompressionQuality := 90; 
      JPG.Compress;
      JPG.SaveToFile(SaveDialog.FileName); 
      JPG.Free;


Wenn das auchnich hilft einfach die Quality erhöhen :)

Au'revoir,
Aya~

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

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Di 11.02.03 20:00 
Danke (Mal wieder :) )
Funktioniert jedoch nicht.
Alibi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458

Win2K SP3
Delphi 6 Ent
BeitragVerfasst: Mi 12.02.03 18:36 
Also so sehen die Grafiken momentan aus, die erstellt werden. Das BMP ist, wie es sein soll...
www.philiplb.de/test.zip
torstenheinze
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 461



BeitragVerfasst: Mi 12.02.03 19:13 
das liegt halt an der kompression, da kann man nichts machen.

versuch mal das rot im orginalbild zu erhellen und comprimiere es dann mal, vieleicht klappt es