DrawSpline, help

Iulian-Nicu Serbanoiu undergraver at gmail.com
Sat Aug 5 04:31:22 PDT 2006


me at comp:~/extra_packs/wxWidgets-2.6.3/samples$ pwd
/home/is/extra_packs/wxWidgets-2.6.3/samples
me at comp:~/extra_packs/wxWidgets-2.6.3/samples$
me at comp:~/extra_packs/wxWidgets-2.6.3/samples$ grep DrawSpline -R *
drawing/drawing.cpp:    void DrawSplines(wxDC& dc);
drawing/drawing.cpp:void MyCanvas::DrawSplines(wxDC& dc)
drawing/drawing.cpp:    dc.DrawSpline(WXSIZEOF(pts), pts);
drawing/drawing.cpp:        dc.DrawSpline(5, letters[m]);
drawing/drawing.cpp:            DrawSplines(dc);
mdi/mdi.cpp:    dc.DrawSpline(50, 200, 50, 100, 200, 10);
printing/printing.cpp:    dc.DrawSpline( 4, points );
sashtest/sashtest.cpp:    dc.DrawSpline(50, 200, 50, 100, 200, 10);
me at comp:~/extra_packs/wxWidgets-2.6.3/samples$

have you looked at "samples/drawing" ... it works pretty ok to me (
just compiled it a few minutes ago ). See other samples also.

Good luck,

Iulian

On 8/5/06, Tomasz Sienkiewicz <azgaard at poczta.onet.pl> wrote:
> Hi Alex,
>
> > why not just do
> >    dc.DrawSpline(&points_list);
> >
> > or have I missed something subtle?
> My bad. Snippet that I've posted was last try. I've tried wxList of
> wxPoints as argument, without success. All i can achieve is LINE from
> point A to B. Maybe DrawSpline got too many points and interpolate it to
> LINE ? It's only possible when all points I would draw, would be placed on
> this line. But I'm drawing arcs etc.
>
> :/
> Any clues ?
> Thanks
> Tom
>
>
> --
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: wx-users-unsubscribe at lists.wxwidgets.org
> For additional commands, e-mail: wx-users-help at lists.wxwidgets.org
>
>




More information about the wx-users mailing list