Long strip split fixes (#7875)
* Fix image width in `splitStrip` * Fix reader switch isn't in md3 (cherry picked from commit 1948d55d5da404c47ef5a390e14e0e0c54e3fe36)
This commit is contained in:
parent
4ae581f6c9
commit
bd1acc3ae7
@ -318,7 +318,7 @@ object ImageUtil {
|
|||||||
|
|
||||||
val options = extractImageOptions(imageStream).apply { inJustDecodeBounds = false }
|
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 {
|
try {
|
||||||
val splitBitmap = bitmapRegionDecoder.decodeRegion(region, options)
|
val splitBitmap = bitmapRegionDecoder.decodeRegion(region, options)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user