Browse Source

Merge commit '963f52a'

Wayne 6 years ago
parent
commit
3c7d2ee6fa
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/main/java/com/bomostory/sceneeditmodule/SceneDrawer.kt

+ 1 - 2
src/main/java/com/bomostory/sceneeditmodule/SceneDrawer.kt

@@ -5,7 +5,6 @@ import android.graphics.Bitmap
 import android.graphics.BitmapFactory
 import android.graphics.BitmapFactory
 import android.graphics.Canvas
 import android.graphics.Canvas
 import android.graphics.Paint
 import android.graphics.Paint
-import android.graphics.drawable.VectorDrawable
 import com.bomostory.sceneeditmodule.basicdata.Scene
 import com.bomostory.sceneeditmodule.basicdata.Scene
 import kotlin.math.pow
 import kotlin.math.pow
 
 
@@ -16,7 +15,7 @@ object SceneDrawer {
         scene?.apply {
         scene?.apply {
             sceneBitmap = BitmapFactory.decodeFile(backgroundPath)
             sceneBitmap = BitmapFactory.decodeFile(backgroundPath)
             sceneBitmap = Bitmap.createScaledBitmap(sceneBitmap, scaleWidth, scaleHeight, true)
             sceneBitmap = Bitmap.createScaledBitmap(sceneBitmap, scaleWidth, scaleHeight, true)
-            sceneBitmap = sceneBitmap?.copy(Bitmap.Config.ARGB_4444, true)
+            sceneBitmap = sceneBitmap?.copy(Bitmap.Config.ARGB_8888, true)
 
 
             val canvas = Canvas(sceneBitmap)
             val canvas = Canvas(sceneBitmap)
             for (layer in layers) {
             for (layer in layers) {