Reputation: 141
I've checked the Android SDK and also performed a Google search on this topic, but to no avail. Does anyone have a code sample or relevant links?
Upvotes: 0
Views: 490
Reputation: 5364
Do not use Renderscript to draw graphics. It was an experimental feature and as of Android 4.1 it is deprecated: http://developer.android.com/about/versions/android-4.1.html#Renderscript
For hardware accelerated graphics, you should use OpenGL ES instead.
Upvotes: 3
Reputation: 6663
With Renderscript you can do this two ways, draw an ellipse-like mesh or draw a rectangle with the texture of an ellipse. If it works for your problem, drawing the texture on a rectangle will be a lot simpler than drawing an ellipse as a mesh.
If you do need to draw the ellipse as a mesh, remember that you only have points, lines, and triangles. This question might help: Effecient way to draw Ellipse with OpenGL or D3D
Upvotes: 2