Re: fast drawing in delphi
- From: "Maldona8" <maldona8@xxxxxxxxxxxx>
- Date: Tue, 20 Dec 2005 14:46:28 +0100
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.
>
>
.
- References:
- fast drawing in delphi
- From: Maldona8
- Re: fast drawing in delphi
- From: Andreas Koch
- Re: fast drawing in delphi
- From: Maldona8
- Re: fast drawing in delphi
- From: Andreas Koch
- Re: fast drawing in delphi
- From: Maldona8
- Re: fast drawing in delphi
- From: Andreas Koch
- Re: fast drawing in delphi
- From: Maldona8
- Re: fast drawing in delphi
- From: Paul Dunn
- fast drawing in delphi
- Prev by Date: Re: fast drawing in delphi
- Next by Date: Re: fast drawing in delphi
- Previous by thread: Re: fast drawing in delphi
- Next by thread: Re: fast drawing in delphi
- Index(es):