allow drawing a bitmap as the canvas background

This commit is contained in:
tibbi
2017-04-09 12:23:23 +02:00
parent cc78d65f80
commit 631ef6cb97
2 changed files with 12 additions and 7 deletions

View File

@@ -117,7 +117,7 @@ class MainActivity : SimpleActivity(), MyCanvas.PathsChangedListener {
if (path.endsWith(".svg")) {
Svg.loadSvg(this, File(path), my_canvas)
} else if (File(path).isImageSlow()) {
my_canvas.drawBitmap(path)
} else {
toast(R.string.invalid_file_format)
}