Beziers are defined by four points, and OP has three.

A circle, on the other hand, is completely defined by three points (except in degenerate cases: points on top of one another, or on a straight line).

So if it's a circle segment (== arc) you want, derive its center and radius (and arc angles) from your points.

-- Kostya

28.09.2010 15:23, David Erosa García пишет:
On Tue, Sep 28, 2010 at 12:53 PM, Navaneeth<[email protected]>  wrote:
Hi folks,

I would like to draw a curve(an arc) connecting three points in my
screen
PointA = (480,46) PointB = (160,137) PointC = (0,228)

How to draw the curve using Android APIs ?
Please Help..
You may want to check Path.cubicTo to generate a Bezier curve:

http://developer.android.com/reference/android/graphics/Path.html#cubicTo(float,
float, float, float, float, float)


Thanks,
Sen

--
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


--
Kostya Vasilyev -- WiFi Manager + pretty widget -- http://kmansoft.wordpress.com

--
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

Reply via email to