 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
virender Guest
|
Posted: Mon Aug 28, 2006 3:06 pm Post subject: Form Capture |
|
|
Hi,
I am working on BCB6, I have implemented a function that will save
TForm as image and it works fine for saving TForm that is visible but
it is not able to capture the whole form image i.e. off screen portion
of the TForm.
Kindly see the attachment:
Form.jpg is my form I want whole form including the off-screen part but
I m getting only visible part see Image.jpg
The code that I am trying is :
Graphics::TBitmap *Bitmap = new Graphics::TBitmap();
TCustomTabControl *TabControl1 = new TCustomTabControl(this);
for(int i = 0 ; i < this->ControlCount; i++ )
{
if(this->Controls[i])
{
Bitmap->Width = Bitmap->Width + TabControl1->Width;
Bitmap->Height = Bitmap->Height + TabControl1->Height;
PaintTo(Bitmap->Canvas->Handle, 0, 0);
}
}
Waiting for your reply. |
|
| 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
|
|