From: ZeppinHood Subject: Re: Very Large Bitmap Experiment Date: 24 Jun 1999 00:00:00 GMT Message-ID: <3771D376.2DD5@badsector.com> Distribution: world Content-Transfer-Encoding: 7bit References: <7ks9oc$rfm$1@bgtnsc03.worldnet.att.net> Content-Type: text/plain; charset=us-ascii X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: abuse@gte.net X-Trace: /bGnt5U8/zMrUlabJCszPupKp3uylQ6kmPhaza0Ttqj8A/O7iYD5WAKuCEs82AinwChEJuSXxwW8!nML29T9qH6ScGjw3jD/T0K4YFjyMB0f20KS+4GiZ2Ur0VlBxR7KYmok= Organization: ZeppinHood's Lair MIME-Version: 1.0 NNTP-Posting-Date: Thu, 24 Jun 1999 06:43:16 GMT Reply-To: zeppinhood@badsector.com Newsgroups: comp.lang.pascal.delphi.misc,alt.comp.borland-delphi,alt.lang.delphi Earl F. Glynn wrote: > > In recent weeks several posts in the newsgroups were about > problems caused by fearless programmers creating bitmaps > of unusually large dimensions. > > To quantify the size of the largest "legal" bitmap -- a compound > limitation of the video adapter, Windows, and who knows what > else -- I developed a program that can be used to manually > find the largest pf24bit that can be created on a given machine. Why not just read the microsoft article that explains the limitation and live with it? I'm sure you have read some of my posts that sum it up as: 1) Don't create DDB's that are larger than the screen. 2) Don't create/blt DDB's from a DIB, were the memory consumption of the source rectangle exceeds the memory consumption of the screen. 3) Get around the above limitation by a) to make large DDB;s, tile screen sized bitmaps. b) Instead of using functions like CreateDIBitmap(), make the bitmap(s) and blt the DIB. c) Blt DIB's in screen_sized or smaller chunks being carefull not to exceed screen memory requirments. Joe [please practice safe blts] -- %Z%------(- %H%------(-