开发者

Graphics quality in android?

开发者 https://www.devze.com 2023-03-17 19:11 出处:网络
I\'m using Android 2D graphics, doing stuff like this: Bitmap bitmap = Bit开发者_如何转开发map.createBitmap(width, height, Config.ARGB_8888);

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

精彩评论

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