Re: [Win32] Maximal pixmap (CompatibleBitmap) size

new topic     » goto parent     » topic index » view thread      » older message » newer message

I have 256 MB RAM + 300 MB on swap avaible. I now use only pixmap of screen size
and do redraw with every scroll, but I hit another problem. I use stretchBlt()
to zoom the bitmap with setStretchBltMode to HALFTONE. But when the zoom is
large
so I source rectagle is about 100x100 pixels, HALFTONE is not used but the
default
stretch method (ugly). This happens only in certain areas, especially near the
edges.
I partially worked this around by blitting larger region the I actually need,
but the
problem still happens sometimes. I did not found anything on MSDN. Thanks,

    Martin

> 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 blink
> >
> > Thanks,
> >       Martin Stachon
> >
> > martin.stachon at tiscali.cz
> > http://www.webpark.cz/stachon
> >
> >
> > TOPICA - Start your own email discussion group. FREE!
> >
> >
> 
> 
> TOPICA - Start your own email discussion group. FREE!
> 
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu