Re: fast drawing in delphi



Dear Paul,
thank you! that's great.
I will try now the Google search for drawing routines.
I will be awaiting for your fastlib.
Ronald

"Paul Dunn" <paul.dunn4@xxxxxxxxxxxx> a écrit dans le message de news:
9kgpf.16441$zt1.12659@xxxxxxxxxxxxxxxxxxxxxxx
> Maldona8 wrote:
>> Andreas,
>> about your answer...
>> does it mean that if I need to draw rectangles or circles
>> I have to write the whole bunch of drawing functions
>> like Circle(x1,y1,x2,y2) or rectangle(x1,y1,x2,y2) etc?
>
> Yes, you will.
>
> Google for Bressenham, both for lines and circles. Both can be extended to
> produce triangles and ellipses, respectively.
>
> A solid polygon is simple - take each vertex and sort the vertices top to
> bottom. Calculate slope values and draw "spans" - between sides, left to
> right. Using Fastlib, I can draw a few thousand polygons in one frame with
> ease, but I tend to avoid using pascal to do it - it's far faster if you
> roll your own in assembly rather than let Delphi's rather poor compiler do
> the work, unless you're prepared to study the output code in a
> disassembler to look for bottlenecks.
>
> That's why I like fastlib, as it gives you low level access to the
> surface, and high level through windows API. I've not tried Graphics32 for
> a long time now, as Fastlib was a lot faster the last time I used it.
>
> I'll mail you my Fastlib archive later on, and I'll supply a couple of
> demos too.
>
> D.
>
>


.