From: "Peter Below (TeamB)" <100113.1101@compuXXserve.com> Subject: Re: TBitmap max size ? Date: 09 Dec 1999 00:00:00 GMT Message-ID: Content-Transfer-Encoding: 8bit References: <384EB3FC.2C3083@net-gate.com> Content-Type: text/plain; charset=iso-8859-1 Organization: TeamB Mime-Version: 1.0 Reply-To: 100113.1101@compuXXserve.com Newsgroups: borland.public.delphi.vcl.components.writing > I have a TForm that contains graphic component that I print out > by creating a TBitmap to hold the entire Form then carve this up > into smaller TBimaps that get printed. This works ok until I try > to print very larger Forms. I get a EResourceError and I believe > its occurs when the TBipmap height hits 32K. Is this the TBitmap > max ? The maximum bitmap size actually depends on the video driver. The only safe assumption you can make here is that you can create a bitmap with the number of pixels equivalent to the screens size in the maximum color depth the video driver supports. This is a limitation of device-dependent bitmaps. Device-independent bitmaps are not limited this way, so try to set the bitmaps HandleType to bmDIB and select an appropriate PixelFormat before you draw on it. Peter Below (TeamB) 100113.1101@compuserve.com) No e-mail responses, please, unless explicitly requested!