From: "Joe C. Hecht" Subject: Re: Bitmaps larger than screen size Date: 10 Jul 1999 00:00:00 GMT Message-ID: <3787A9ED.1976@gte.net> Content-Transfer-Encoding: 7bit References: <3785AD1D.6174@REMOVECAPShotmail.com> <37865A9C.6C0F@gte.net> <37874D65.2D37@REMOVECAPShotmail.com> Content-Type: text/plain; charset=us-ascii Organization: Offshore Technology Mime-Version: 1.0 Reply-To: joehecht@gte.net Newsgroups: borland.public.delphi.graphics Chad Jones wrote: > > Joe C. Hecht wrote: > > > > ... but you will get > > very reliable results if you follow the guideline > > of not blting a section thats larger than the > > screen, or bltting a section that requires more > > memory than a screen load. > > Thanks for clarifying that! > > Up til now, I've been using a TScrollbox containing a large re-sizing > TImage which obviously is not a good strategy. > > It seems that what I'll need is a TImage based component with a > client-area sized canvas and scrollbars which represent the larger > virtual width/height. It would keep the full image in memory or as a > mapped file and blt to screen only those portions which should become > visible as scrolling takes place. Perfect strategy. > Seen anything like this out there already? Not on the market. I have been doing stuff like this since the first verions of Windows. Its not too difficult to pull off, but I do wish I had a good pointer to a component for you. Remember, blt the smaller of the screensize or the chunk of memory used by a screenload. ie: when blitting a 24 bit DIB to a 8 bit display, blt the chunks in 1/3 screenload chunks, and you will be *absolutly* safe under all versions of windows. Use this method *especially* when going to the printer as well. Joe -- Joe C. Hecht http://home1.gte.net/joehecht/index.htm