procedure TForm1.Button1Click(Sender: TObject);
var
memoStream,OleStream:T 🎜> image1.Picture :=nil;
image2.Picture :=nil;
//顯示初始照片
image1.Picture.LoadFromFile('c:logo.bmp'));
try
//將照片儲存為TmemoryStream
image1.Picture.Bitmap.SaveToStream(memoStream); stream:=TStreamAdapter.Create (memoStream);
//將IStream轉成TOleStream ==TmemoryStream
OleStream := TOleStream).Create(StreamStream);comcomocomo. (OleStream);
finally
memoStream.Free;
OleStream.Free;
end; uses
....................AxCtrls,ActiveX; //必加此二單元
以上就介紹了site:www.jschina.com.cn IStream與TStream之間的相互轉換,包括了site:www.jschina.com.cn方面的內容,希望對PHP教程有興趣的朋友有所幫助。