Reputation: 3454
I'm using Android 2D graphics, doing stuff like this:
Bitmap bitmap = Bitmap.createBitmap(width, height, Config.ARGB_8888);
Canvas canvas = new Canvas(bitmap);
canvas.drawLine(x1, y1, x2, y2, null);
I'd like to know if an option exists to render high quality graphics.
In Swing I would use the RenderingHints
, but does this concept exist in Android ?
Upvotes: 0
Views: 272
Reputation: 2741
You had to use Paint with anti-aliasing. In the code you used null (last parameter of canvas.drawLine(...) ).
Upvotes: 1