jbas
asked on
how can i convert jpeg.stream->bmp.stream?
hi,experts,
why delphi not support, image1.picture.loadfromstr eam()
now i have a jpeg stream,and i want to show in image component,and i not hope i tempfile to
convert jpeg to bmp,how can i do?
thank.
why delphi not support, image1.picture.loadfromstr
now i have a jpeg stream,and i want to show in image component,and i not hope i tempfile to
convert jpeg to bmp,how can i do?
thank.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
never needed this,
but well, its just for faster painting
but well, its just for faster painting
:-)
ASKER
thanks all!
var
jpg : TJpegImage;
bmp: TBitmap;
begin
jpg := TJpegImage.Create;
bmp:=TBitmap.Create;
try
jpg.loadFromStream(YourStr
//display
jpg.DIBNeeded; // !!!!!!!!!!!!!!!!!!!!!!
bmp.Assign(jpg);
finally
jpg.free;
end;
end;