Fix image width in splitStrip

This commit is contained in:
AntsyLich 2022-08-28 03:53:41 +06:00 committed by GitHub
parent 0bb20a92af
commit aa5a630d23
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -282,7 +282,7 @@ object ImageUtil {
val options = extractImageOptions(imageStream).apply { inJustDecodeBounds = false }
val region = Rect(0, splitData.topOffset, splitData.outputImageHeight, splitData.bottomOffset)
val region = Rect(0, splitData.topOffset, options.outWidth, splitData.bottomOffset)
try {
val splitBitmap = bitmapRegionDecoder.decodeRegion(region, options)