Re: [Win32] Maximal pixmap (CompatibleBitmap) size
- Posted by Derek Parnell <ddparnell at bigpond.com> May 15, 2003
- 438 views
Martin, I imagine the limit will be RAM and not some artificial Windows limit. A bit map of 2330 by 1540 at 2-times zoom will take about 60MB of ram (24bit color). ---------------- cheers, Derek Parnell ----- Original Message ----- From: "Martin Stachon" <martin.stachon at worldonline.cz> To: "EUforum" <EUforum at topica.com> Sent: Tuesday, May 13, 2003 12:53 AM Subject: [Win32] Maximal pixmap (CompatibleBitmap) size > > Hello, > I am writing a program that will display large bitmap (base size 2330x1540) > with zoom (zoom > 2x). Using win32lib. I create a pixmap, when user zooms in > and zoomed bitmap does not fit into the pixmap (buffer), the pixmap is resized. > When zoom is about 2, I get CreateCompatibleBitmap() errors. I am going > to create several pixmaps for larger zooms, and split the bitmap between them, > so I need to know the maximal pixmap size for all Win version. (I'd prefer no > trial - fail practice). Is the info avaiable or is there a better solution ? > (I tried not using buffer and drawing only the visible portion but this is slow > for scrolling) > > P.S. The program will be avaiable for this community > > Thanks, > Martin Stachon > > martin.stachon at tiscali.cz > http://www.webpark.cz/stachon > > > > TOPICA - Start your own email discussion group. FREE! > >