Graphics quality in android?
I'm using Android 2D graphics, doing stuff like this:
Bitmap bitmap = Bit开发者_如何转开发map.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 ?
You had to use Paint with anti-aliasing. In the code you used null (last parameter of canvas.drawLine(...) ).
精彩评论