i mean niko, sorry. cant even spell right after working with layouts for hours at a stretch !
On Aug 5, 2:04 pm, androidmediadeveloper <[email protected]> wrote: > great suggestion, thanks niki, will try this and post on results ! > > On Aug 5, 12:03 pm, niko20 <[email protected]> wrote: > > > You could increase the number of points just before actually drawing > > by first doing a cubic interpolation. A "lineTo" is a linear > > interpolation which is not what you want. A cubic interpolation will > > give you more of a curve shape. So take your ten points, and > > interpolate extra points between each of those, and then once you have > > enough points, then pass that to lineTo(). It will still draw straight > > lines but they will be smoothed out from having more data points to > > work with. > > > -niko > > > On Aug 5, 8:01 am, androidmediadeveloper <[email protected]> > > wrote: > > > > I have a bitmap that I draw on at runtime, and I basically come up > > > with 10 points on the bitmap that I'd like to see connected with one > > > smooth curve. Using the Path.lineTo to draw individual lines now which > > > are obviously individual sharp lines connecting 2 successive points. > > > Any good ideas for drawing up one smooth flowing line ? Tried the > > > Path.cubicTo which draws a bezier given 3 control points but this > > > doesnt seem to have the desired effect. > > > > Thanks -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

