Render themes: PNG scaling, fix #595

This commit is contained in:
Emux
2018-10-11 10:56:58 +03:00
parent f853e54d77
commit a530070ecf
15 changed files with 207 additions and 108 deletions

View File

@@ -1,6 +1,6 @@
/*
* Copyright 2016 Longri
* Copyright 2016 devemux86
* Copyright 2016-2018 devemux86
* Copyright 2017 Longri
*
* This program is free software: you can redistribute it and/or modify it under the
@@ -59,6 +59,11 @@ public class IosGraphics extends CanvasAdapter {
return new IosBitmap(inputStream);
}
@Override
protected Bitmap decodeBitmapImpl(InputStream inputStream, int width, int height, int percent) throws IOException {
return new IosBitmap(inputStream, width, height, percent);
}
@Override
protected Bitmap decodeSvgBitmapImpl(InputStream inputStream, int width, int height, int percent) throws IOException {
return new IosSvgBitmap(inputStream, width, height, percent);