A
andin
Unregistered / Unconfirmed
GUEST, unregistred user!
在 Delphi5 下开发了一个程序,其中有一段程序是这样的:
InsertBmp.Width := FCurrentBitmap.Width;
InsertBmp.Height := FCurrentBitmap.Height;
InsertBmp.Canvas.Draw(0,0,FCurrentBitmap);
InsertBmp.PixelFormat := tempBMP.PixelFormat;
InsertBmp.SaveToStream(..);
在一个工作线程内,不断得调用这段程序,将 FCurrentBitmap 数据拷贝到 InsertBmp 对象之中,可是奇怪的是,偶尔,这样的拷贝(Draw)不成功,也就是说,偶尔拷贝后的InsertBmp 是一片空白,但是 FCurrentBitmap 却有数据!!!
InsertBmp.Width := FCurrentBitmap.Width;
InsertBmp.Height := FCurrentBitmap.Height;
InsertBmp.Canvas.Draw(0,0,FCurrentBitmap);
InsertBmp.PixelFormat := tempBMP.PixelFormat;
InsertBmp.SaveToStream(..);
在一个工作线程内,不断得调用这段程序,将 FCurrentBitmap 数据拷贝到 InsertBmp 对象之中,可是奇怪的是,偶尔,这样的拷贝(Draw)不成功,也就是说,偶尔拷贝后的InsertBmp 是一片空白,但是 FCurrentBitmap 却有数据!!!