XmlThemeBuilder: disable mipmap for sharper rendering
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user