Re: TBitmap memory allocation



On 20 Jul 2005 06:36:50 -0700, nic@xxxxxx (Nicolai Hansen) wrote:

<snip>

>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...

Interesting

Further to Tom's suggestion, are the bitmaps all the same size ?

Another possibility would be to just have a few TBitmaps and to modify
them via the Scanline or using SetDiBits

Although it sounds laborious, it would all be boxed up, and copying
memory is pretty fast.

In the past under DOS I've built my own fonts for two colour graphics
mode, and the screens refresh like lightning - even on slow machines.


.



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)