Board index » cppbuilder » ok
b
![]() CBuilder Developer |
ok2003-07-14 07:02:05 AM cppbuilder110 void __fastcall TForm1::New(int w, int h) { Graphics::TBitmap *pBitmapTemp = new Graphics::TBitmap(); TCanvas *pMapCanvas; pBitmapTemp->Height = h*32; pBitmapTemp->Width = w*32; Image->Enabled = true; Image->Height = h*32; /*also tried using Image->Picture->Bitmap->Height ... but it is resized just at the dimension of default size*/ Image->Width = w*32; pCanvas = pBitmapTemp->Canvas; pCanvas->Pen->Color = clRed; pCanvas->Pen->Color = clBlack; BitBlt(Images->Canvas->Handle, 0, 0, w*32, h*32, pCanvas->Handle, 0, 0, SRCCOPY); } |