Autor Beitrag
UWER
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79

SUSE 8.1, XP Home
D7 Prof. , Kylix 3
BeitragVerfasst: Fr 11.07.03 11:08 
Hallo Leute,

ich habe das Problem das ich noch keinen Weg gefunden habe einen JPEG der als Stream vorliegt in eine TPicture-komponente reinzukriegen. Mit Bitmaps kein Problem. Picture.Bitmap.LoadFromStream(PicStream) und fertig ist die Laube. Bei JPEG's steh ich mir aber irgendwie auf dem Denkschlauch. Ich könnte zwar den Umweg über eine Datei gehen, aber es muß doch einen direkten Weg geben.

Bin für jeden Tip dankbar.

_________________
Gruß
UWER
Simon Joker
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 236
Erhaltene Danke: 1



BeitragVerfasst: Fr 11.07.03 13:10 
Hi Uwer,

erzeuge dir doch einfache eine Variable mit TJPEGImage und lade dann aus dem Stream.

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
...
  try
    JP:=TJPGImage.Create;
    JP.LoadFromStream(Stream);
    Picture.Assign(JP);   
  finally
    JP.Free;
  end;
UWER Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 79

SUSE 8.1, XP Home
D7 Prof. , Kylix 3
BeitragVerfasst: Fr 11.07.03 13:38 
Hallo Simon,

danke das war der entscheidende Hinweis. Manchmal sieht man den Wald vor lauter Bäumen nicht.

_________________
Gruß
UWER