Re: TBitmap memory allocation



Nicholas Sherlock <n_sherlock@xxxxxxxxxxx> wrote in message news:<dbl5e9$13v$1@xxxxxxxxxxxxxxx>...
> Nicolai Hansen wrote:
> > I have a problem; I'm working on a project where we need to allocate a
> > lot (up to some 5000) TBitmaps, usually very small ones, and feed them
> > with data from some files.
>
> The problem may be memory, but there is something that you will run into
> first (On windows 98. 2000+ doesn't suffer from this problem). This is a
> lack of GDI handles. Windows 98 has a _very_ limited amount of these,
> and every bitmap will use at least one. Redesign or upgrade OS.
>
> Cheers,
> Nicholas Sherlock

We are running Windows 2000... I suspected the GDI handles to be the
problem in the end, but what do I do? :S

For J - its for an industrial application printing on lottery coupons
at very high speeds. Every letter on the coupon is a small bitmap,
every symbol is a small bitmap, etc. Our customer tells us that they
can easily use 20 different sets of symbols ("fonts") in each job; a
font consist of up to 256 characters, all of which must be pre-loaded
for speed...

If I can't sort this out using TBitmaps I will have to redo stuff to
use home made "TBitmap"s instead, replacing the TCanvas with a normal
byte array or something... Will be a true pain as I will have to
program new draw methods myself :S
.



Relevant Pages

  • Re: TBitmap memory allocation
    ... >We are running Windows 2000... ... I suspected the GDI handles to be the ... >For J - its for an industrial application printing on lottery coupons ... Every letter on the coupon is a small bitmap, ...
    (comp.lang.pascal.delphi.misc)
  • Re: GdipCreateHBITMAPFromBitmap + PixelFormat32bppARGB
    ... The Windows bitmap specification was drawn up for Windows 3.1 ... Alpha blended bitmaps were not supported. ... The documentation for AlphaBlend function implies that Windows GDI ... an alpha channel. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: The story: Painting bitmap to screen is slow
    ... The general "trick" behind great GDI+ performance is to do all drawing ... single bitmap to the screen. ... I heard Microsoft broke GDI acceleration for some operations in Vista. ... your configuration of Vista or graphics driver. ...
    (microsoft.public.dotnet.framework.drawing)
  • The story: Painting bitmap to screen is slow
    ... I've done a lot graphics programming by now and the thing that bothers me with GDI+ in .NET framework the most is slow drawing of bitmaps to screen. ... In Win32, there were two types of bitmaps, compatible and memory bitmap. ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: Creating a GDI+ Bitmap from an 8-bit Bitmap
    ... Ok, when I create the GDI+ bitmap from a DIB, the image looks a bit better. ... That tells me that something is still a bit off with my palette. ...
    (microsoft.public.win32.programmer.gdi)