SVG symbols custom default size, closes #74

This commit is contained in:
Emux 2016-07-18 19:21:34 +03:00
parent a5679ce214
commit 05184e7f5f
3 changed files with 12 additions and 3 deletions

View File

@ -27,7 +27,10 @@ import java.io.IOException;
import java.io.InputStream;
public class AndroidSvgBitmap extends AndroidBitmap {
private static final float DEFAULT_SIZE = 400f;
/**
* Default size is 20x20px at baseline mdpi (160dpi).
*/
public static float DEFAULT_SIZE = 400f;
private static android.graphics.Bitmap getResourceBitmap(InputStream inputStream) throws IOException {
synchronized (SVG.getVersion()) {

View File

@ -27,7 +27,10 @@ import java.io.IOException;
import java.io.InputStream;
public class AndroidSvgBitmap extends AndroidBitmap {
private static final float DEFAULT_SIZE = 400f;
/**
* Default size is 20x20px at baseline mdpi (160dpi).
*/
public static float DEFAULT_SIZE = 400f;
private static android.graphics.Bitmap getResourceBitmap(InputStream inputStream) throws IOException {
synchronized (SVG.getVersion()) {

View File

@ -27,7 +27,10 @@ import java.io.InputStream;
import java.net.URI;
public class AwtSvgBitmap extends AwtBitmap {
private static final float DEFAULT_SIZE = 400f;
/**
* Default size is 20x20px.
*/
public static float DEFAULT_SIZE = 400f;
private static BufferedImage getResourceBitmap(InputStream inputStream) throws IOException {
synchronized (SVGCache.getSVGUniverse()) {