开发者

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(...) ).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜