Fix image width in splitStrip
This commit is contained in:
parent
0bb20a92af
commit
aa5a630d23
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user