XmlThemeBuilder: disable mipmap for sharper rendering
This commit is contained in:
@@ -48,7 +48,7 @@ public class LineTexActivity extends BitmapTileActivity {
|
||||
TextureItem tex = null;
|
||||
try {
|
||||
tex = new TextureItem(CanvasAdapter.getBitmapAsset("", "patterns/pike.png"));
|
||||
tex.mipmap = true;
|
||||
//tex.mipmap = true;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright 2014 Hannes Janetzek
|
||||
* Copyright 2016-2018 devemux86
|
||||
* Copyright 2016-2019 devemux86
|
||||
*
|
||||
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
|
||||
*
|
||||
@@ -77,7 +77,7 @@ public class LineRenderTest extends GdxMapApp {
|
||||
TextureItem tex = null;
|
||||
try {
|
||||
tex = new TextureItem(CanvasAdapter.getBitmapAsset("", "patterns/dot.png"));
|
||||
tex.mipmap = true;
|
||||
//tex.mipmap = true;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ public class LineTexTest extends GdxMapApp {
|
||||
|
||||
try {
|
||||
tex = new TextureItem(CanvasAdapter.getBitmapAsset("", "patterns/pike.png"));
|
||||
tex.mipmap = true;
|
||||
//tex.mipmap = true;
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
@@ -635,7 +635,7 @@ public class XmlThemeBuilder extends DefaultHandler {
|
||||
transparent = !transparent;
|
||||
}
|
||||
b.texture = new TextureItem(Utils.potBitmap(bitmap));
|
||||
b.texture.mipmap = true;
|
||||
//b.texture.mipmap = true;
|
||||
b.randomOffset = false;
|
||||
b.stipple = width;
|
||||
b.stippleWidth = 1;
|
||||
@@ -653,7 +653,7 @@ public class XmlThemeBuilder extends DefaultHandler {
|
||||
canvas.setBitmap(bitmap);
|
||||
canvas.drawBitmap(b.texture.bitmap, b.repeatStart, 0);
|
||||
b.texture = new TextureItem(Utils.potBitmap(bitmap));
|
||||
b.texture.mipmap = true;
|
||||
//b.texture.mipmap = true;
|
||||
b.fixed = true;
|
||||
b.randomOffset = false;
|
||||
b.stipple = width;
|
||||
|
||||
Reference in New Issue
Block a user