|
너무너무너무 감사합니다..
아래와 같이 하여 해결이 되었습니다..
TMemoryStream *MyStream = new TMemoryStream();
MyStream->WriteBuffer(Buff, statbuf.st_size);
MyStream->Seek(0,soFromBeginning); // 추가 부분
Graphics::TBitmap *Bitmap1 = new Graphics::TBitmap();
Bitmap1->LoadFromStream(MyStream);
Canvas->Brush->Bitmap = Bitmap1;
Canvas->FillRect(Rect(10,10,200,200));
delete MyStream;
delete Bitmap1;
|