Tuesday, May 31, 2011

[android-developers] Re: Plot quadratic equation graph

http://developer.android.com/reference/android/graphics/Path.html

rCubicTo, rQuadTo and other methods provide interpolated curves.

On May 29, 2:50 am, SamuelXiao <foolsmart2...@gmail.com> wrote:
> Hi Webb,
>
> Could you explain in more details please? I studied the Path class but
> from other examples, it seems path cannot generate smoothed lines....
>
> Thanks.
>
> On May 24, 10:27 am, Peter Webb <r.peter.w...@gmail.com> wrote:> You can draw lines using canvas.drawline.
>
> > You can make these smoothed lines by specifying your points in a Path
> > class.
>
> > Once you load your points in the Path array, it is a couple of lines
> > of code to draw it with the Canvas class.
>
> > If this is all you want to do, it doesn't need any third party
> > libaries.
>
> > On May 22, 3:12 am, SamuelXiao <foolsmart2...@gmail.com> wrote:
>
> > > Hi all,
>
> > > I am a newbie and writing an app which just needs to plot the
> > >quadraticequation graph, that is, y=ax^2+bx+c. Now my problem is
> > > about how to plot the graph. I want to make the graph has the effect
> > > like that:http://www.appbrain.com/app/math-functions-drawing/siriosoft.math.fun...
> > > (the right-hand side image).
>
> > > Does anyone know how to make it? I tried to usehttp://w2davids.wordpress.com/creating-charts-with-droidcharts-for-an...
> > > this sample but found the line does not display as smooth as expected
> > > and it doesn't display negative side (it just show the positive side,
> > > e.g. x=0,1,2....).
>
> > > Any help would be highly appreciated.

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate