 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
wowiii Guest
|
Posted: Sun May 14, 2006 12:56 pm Post subject: data to Tbitmap |
|
|
I have following code:
Graphics::TBitmap *bm = new Graphics::TBitmap;
//bm->LoadFromFile("pawel.bmp");
bm->Width = Panel1->Width;
bm->Height = Panel1->Height;
int *buff = new int[Panel1->Width*Panel1->Height];
glReadPixels (0, 0, Panel1->Width, Panel1->Height, GL_RGBA,
GL_UNSIGNED_BYTE, buff);
bm->HandleType = bmDIB;
//*bm = *buff;
Image1->Picture->Bitmap = bm;
delete bm;
Mu question is how to insert buff data to bm(Tbitmap)???? |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|