Mega Code Archive

 
Categories / Delphi / API
 

Why am i having trouble displaying and-or printing a very large bitmap

Question: I created a very large bitmap image that refuses to display or print on some systems. What can I do? Answer: There are a number of factors that can affect the size of the largest displayable bitmap. Some versions of Windows can only work with a Bitmap that is no larger than 1.75 megabytes in size. The display driver can also play an important role, even during printing, as the printer driver may rely on the display driver to do some of the work. Some display drivers can only work with a bitmap that is no larger than the screen resolution, and may have trouble with bitmaps that use a different color resolution. The safest method to use when working with large bitmaps, is to create smaller bitmaps from the larger one (in code), and display the larger bitmap in sections called "bands".