Re: fast drawing in delphi



DoDI, wait a moment,

DoDi, did you mean, to create a monochrome bitmap
directly in memory and then forcing copy bitmap regions to screen?
I have to try it to see how it works...

> AFAIR you can copy a monochrome bitmap into an colored DC, resulting in a
> copy with the color of your choice.

I have 100x100 hexagons in the image. Each hexagon has a individual color,
indepently of any other hexagon colors, neighbors, etc.

Is DirectX the fastest technology for screen drawing?

> bitmaps. At least you should test all high-level graphics options, before
> deciding to tweak pixels.

SO, does it means
1) to use DIB or WMF or EMF to draw something
(100x100 hexagons for example) in a bitmap in RAM memory
2) play the Bitmap memory into Screen memory through VideoCard ASM
instructions or DirectX

Any web site you recommend for learning to use how to draw, print, save and
load images with DirectX??
Thanks!


"Hans-Peter Diettrich" <DrDiettrich@xxxxxxxxxxx> a écrit dans le message de
news: 40mf2kF1b8q1pU2@xxxxxxxxxxxxxxxxx
> Maldona8 schrieb:
>
>> Looking for algorithms, source codes for fast drawing routines in Delphi
>> I have a hexagonal grid of 100x100 hexagons, each hexagon having its own
>> color.
>
> AFAIR you can copy a monochrome bitmap into an colored DC, resulting in a
> copy with the color of your choice.
>
>> I need to draw this map in a very very fast way, the faster possible.
>> What Delphi technology would you recommend to do this job?
>
> IMO fast drawing nowadays is a job of DirectX and the accelerated graphics
> cards. Drawing pixels might be slower than copying whole bitmaps. At least
> you should test all high-level graphics options, before deciding to tweak
> pixels.
>
> DoDi


.



Relevant Pages

  • Re: memory leak
    ... ArgumentException on Full Framework) when I have a ton of virtual memory ... "new Bitmap" line. ... Dispose is not a required call - it is optional. ... you are done with those resources. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: One Thing I Noticed - Line Too Long
    ... > in memory plus a further bitmap, or "extra space on the Form wasting ... Turning on autoredraw keeps a copy of what's on the screen in memory. ... are drawing a bitmap to the screen and have the bitmap in memory then you ... > Picture Box and one Command Button. ...
    (microsoft.public.vb.general.discussion)
  • Re: memory leak
    ... Adding GC.Collectcauses the memory to drop, ... Now do you still agree that the GC will cleanup Bitmap objects? ... Dispose is not a required call - it is optional. ... done with those resources. ...
    (microsoft.public.dotnet.framework.compactframework)
  • Re: How to convert image from Format1bppIndexed to Format24bppRgb?
    ... //image you just need to create a bitmap of the correct size ... > case of conversion to any indexed type you need to understand the pixel ... > Find great Windows Forms articles in Windows Forms Tips and Tricks ... >>> The size of the image file has no bearing on the amount of memory you ...
    (microsoft.public.dotnet.framework.drawing)
  • Re: memory leak
    ... Adding GC.Collectcauses the memory to drop, ... GC.Collect in the exception handler, ... Now do you still agree that the GC will cleanup Bitmap objects? ... Dispose is not a required call - it is optional. ...
    (microsoft.public.dotnet.framework.compactframework)