IImage.Resize on Android always returns an object with **System.ObjectDisposedException:** 'Cannot access a disposed object. #6909
Labels
area-controls-image
Image control
p/1
Work that is important, and has been scheduled for release in this or an upcoming sprint
platform/android 🤖
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
System.ObjectDisposedException: 'Cannot access a disposed object.
IImage Resize(float width, float height, ResizeMode resizeMode = ResizeMode.Fit, bool disposeOriginal = false);
doesn't matter if disposeOriginal: true or false
When the function is called, the returned object (resized IImage) always has this problem and cannot be used.
However, object returned by Downsize method works fine
Steps to Reproduce
call IImage.Resize() on Android and work with the returned object
Demonstration:
MauiApp2 Android IImage resized image disposed exception.zip
Version with bug
Release Candidate 2 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android 11 (API 30)
Did you find any workaround?
the same functionality can be simulated using
IImage.Downsize()
probablyRelevant log output
No response
The text was updated successfully, but these errors were encountered: