XmlThemeBuilder: disable mipmap for sharper rendering

This commit is contained in:
Emux
2019-09-28 18:29:47 +03:00
parent 3f3caa1912
commit 5facdb9888
4 changed files with 6 additions and 6 deletions

View File

@@ -48,7 +48,7 @@ public class LineTexActivity extends BitmapTileActivity {
TextureItem tex = null; TextureItem tex = null;
try { try {
tex = new TextureItem(CanvasAdapter.getBitmapAsset("", "patterns/pike.png")); tex = new TextureItem(CanvasAdapter.getBitmapAsset("", "patterns/pike.png"));
tex.mipmap = true; //tex.mipmap = true;
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }

View File

@@ -1,6 +1,6 @@
/* /*
* Copyright 2014 Hannes Janetzek * Copyright 2014 Hannes Janetzek
* Copyright 2016-2018 devemux86 * Copyright 2016-2019 devemux86
* *
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org). * This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
* *
@@ -77,7 +77,7 @@ public class LineRenderTest extends GdxMapApp {
TextureItem tex = null; TextureItem tex = null;
try { try {
tex = new TextureItem(CanvasAdapter.getBitmapAsset("", "patterns/dot.png")); tex = new TextureItem(CanvasAdapter.getBitmapAsset("", "patterns/dot.png"));
tex.mipmap = true; //tex.mipmap = true;
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }

View File

@@ -54,7 +54,7 @@ public class LineTexTest extends GdxMapApp {
try { try {
tex = new TextureItem(CanvasAdapter.getBitmapAsset("", "patterns/pike.png")); tex = new TextureItem(CanvasAdapter.getBitmapAsset("", "patterns/pike.png"));
tex.mipmap = true; //tex.mipmap = true;
} catch (IOException e) { } catch (IOException e) {
e.printStackTrace(); e.printStackTrace();
} }

View File

@@ -635,7 +635,7 @@ public class XmlThemeBuilder extends DefaultHandler {
transparent = !transparent; transparent = !transparent;
} }
b.texture = new TextureItem(Utils.potBitmap(bitmap)); b.texture = new TextureItem(Utils.potBitmap(bitmap));
b.texture.mipmap = true; //b.texture.mipmap = true;
b.randomOffset = false; b.randomOffset = false;
b.stipple = width; b.stipple = width;
b.stippleWidth = 1; b.stippleWidth = 1;
@@ -653,7 +653,7 @@ public class XmlThemeBuilder extends DefaultHandler {
canvas.setBitmap(bitmap); canvas.setBitmap(bitmap);
canvas.drawBitmap(b.texture.bitmap, b.repeatStart, 0); canvas.drawBitmap(b.texture.bitmap, b.repeatStart, 0);
b.texture = new TextureItem(Utils.potBitmap(bitmap)); b.texture = new TextureItem(Utils.potBitmap(bitmap));
b.texture.mipmap = true; //b.texture.mipmap = true;
b.fixed = true; b.fixed = true;
b.randomOffset = false; b.randomOffset = false;
b.stipple = width; b.stipple = width;