Skip to content

Commit

Permalink
Fix height of split double pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jays2Kings committed Oct 15, 2021
1 parent 3ee2f01 commit d137dba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ object ImageUtil {
): ByteArrayInputStream {
val height = imageBitmap.height
val width = imageBitmap.width
val result = Bitmap.createBitmap(width / 2, height * 2, Bitmap.Config.ARGB_8888)
val result = Bitmap.createBitmap(width / 2, height, Bitmap.Config.ARGB_8888)
val canvas = Canvas(result)
progressCallback?.invoke(98)
canvas.drawBitmap(imageBitmap, Rect(if (!secondHalf) 0 else width / 2, 0, if (secondHalf) width else width / 2, height), result.rect, null)
Expand Down

0 comments on commit d137dba

Please sign in to comment.