Article View: borland.public.cppbuilder.nativeapi
Article #1297Re: Setting a window dimensions larger than the screen display
From: Asger Jørgensen
Date: Thu, 04 Oct 2007 17:44
Date: Thu, 04 Oct 2007 17:44
30 lines
1675 bytes
1675 bytes
Hi Mark
In article <47051a6f@newsgroups.borland.com>, mark@jacobsm.com
says...
>
> But, GetFormImage() won't yield a large bitmap, it will be just what of the
> form is visible on screen. I need to get the form to be bigger than the
> screen, and GetFormImage() to yield a bitmap that exceeds screen dimensions.
Have You tryed something like this ?
TBitmap* Bmp = new TBitmap();
Bmp->Width = Chart->Width;
Bmp->Height = Chart->Height;
BitBlt(
Bmp->Canvas->Handle,
0,0,Chart->Width,
Chart->Height,
Chart->TeCanvas->Canvas->Handle,
0,0,SRCCOPY
);
Bmp->SaveToFile(FileName);
delete Bmp;
********** NOT TESTED **********
Kind regards
Asger
Technical Details
Message-ID:
<MPG.216f44f7970fe74b989836@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<470500be$1@newsgroups.borland.com> <4705035c@newsgroups.borland.com> <47051a6f@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ed0d9ed942d9e6f4 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Asger Jørgensen <junk@Asger-P.dk> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Setting a window dimensions larger than the screen display Date: Thu, 4 Oct 2007 19:44:43 +0200 Message-ID: <MPG.216f44f7970fe74b989836@newsgroups.borland.com> References: <470500be$1@newsgroups.borland.com> <4705035c@newsgroups.borland.com> <47051a6f@newsgroups.borland.com> Organization: Asger-P MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit User-Agent: MicroPlanet-Gravity/2.70.2067 NNTP-Posting-Host: 83.73.213.92 X-Trace: newsgroups.borland.com 1191519876 83.73.213.92 (4 Oct 2007 10:44:36 -0700) Lines: 30 Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news.germany.com!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail