Re: [fpc-pascal] Fastest way of drawing 2D graphs

2014-09-13 Thread Marco van de Voort
In our previous episode, Hunter1972 said: > > > I assume your polylines are basically an array of X,Y coordinates in > > > single > > precision + color information? If you supply examples of those, I'll see if > > I can hack something together. (binary only, since it is a work codebase, > > more t

Re: [fpc-pascal] Fastest way of drawing 2D graphs

2014-09-13 Thread Graeme Geldenhuys
On 12/09/14 13:51, Hunter1972 wrote: > I will check what these libraries can do and how fast. You can also take a look at AggPas. It is a very good 2D vector graphics engine and loads of example apps that show scaling and panning. A copy can be found in the fpGUI or Lazarus code repository. The on

Re: [fpc-pascal] Fastest way of drawing 2D graphs

2014-09-12 Thread Hunter1972
> ...SDL... > -Michael > . > MSEgui txychartedit > Another option is Lazarus TChart. > . > Martin I will check what these libraries can do and how fast. > > I assume your polylines are basically an array of X,Y coordinates in single > precision + color information? If you supply examples

Re: [fpc-pascal] Fastest way of drawing 2D graphs

2014-09-12 Thread Marco van de Voort
In our previous episode, Hunter1972 said: > I am new in FPC and want to understand the correct(fastest) methods when > drawing 2D graphics. > The task is simple but extensive: to draw about 200 polylines with > 5-20 points in each. > I have made a test code in OnPaint event: OpenGL is an

Re: [fpc-pascal] Fastest way of drawing 2D graphs

2014-09-12 Thread Michael Schnell
On 09/12/2014 01:36 AM, Hunter1972 wrote: Then I'd like to add some actions to the graphics: 1)Scaling around some point (by mouse wheel), actually magnifying 2)Moving this scaled point quickly to another part of graphics( using scroll bars?) I once did "zooming and panning" of pixel graphics u

Re: [fpc-pascal] Fastest way of drawing 2D graphs

2014-09-12 Thread Martin Schreiber
On Friday 12 September 2014 01:36:56 Hunter1972 wrote: > Hello, > I am new in FPC and want to understand the correct(fastest) methods when > drawing 2D graphics. The task is simple but extensive: to draw about 200 > polylines with 5-20 points in each. MSEgui txychartedit supports it. An ex

[fpc-pascal] Fastest way of drawing 2D graphs

2014-09-11 Thread Hunter1972
Hello, I am new in FPC and want to understand the correct(fastest) methods when drawing 2D graphics. The task is simple but extensive: to draw about 200 polylines with 5-20 points in each. I have made a test code in OnPaint event: ... type TSingleArray = array of single; TIntArray =