Enabled anti aliasing for generated icons

This commit is contained in:
M66B 2021-10-03 08:04:43 +02:00
parent 6048216fd4
commit 8e05ebff7b
1 changed files with 2 additions and 0 deletions

View File

@ -136,6 +136,7 @@ class ImageHelper {
int bg = Color.HSVToColor(new float[]{h, s / 100f, v / 100f});
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(bg);
Bitmap bitmap = Bitmap.createBitmap(size, size, Bitmap.Config.ARGB_8888);
@ -191,6 +192,7 @@ class ImageHelper {
canvas.drawColor(bg);
Paint paint = new Paint();
paint.setAntiAlias(true);
paint.setColor(lum < t ? Color.WHITE : Color.BLACK);
paint.setTextSize(size / 2f);
try {