Skip to content

Commit

Permalink
refactor: Migration libs
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjoongcho committed Dec 21, 2024
1 parent bb66ac7 commit aa8541c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ object BitmapUtils {
val targetFlameHeight: Int = (bmp.height * scaleFactor).toInt() + (borderSize * 2)
val targetPhotoWidth: Int = (bmp.width * scaleFactor).toInt()
val targetPhotoHeight: Int = (bmp.height * scaleFactor).toInt()
val bmpWithBorder = Bitmap.createBitmap(targetFlameWidth, targetFlameHeight, bmp.config)
val bmpWithBorder = Bitmap.createBitmap(targetFlameWidth, targetFlameHeight, bmp.config!!)
val samplingPhoto = Bitmap.createScaledBitmap(bmp, targetPhotoWidth, targetPhotoHeight, false)
val canvas = Canvas(bmpWithBorder)
canvas.drawColor(ContextCompat.getColor(context, R.color.colorPrimary))
Expand Down

0 comments on commit aa8541c

Please sign in to comment.