mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix height of split double pages
This commit is contained in:
parent
3ee2f01428
commit
d137dba785
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue