Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
GitHub or Developer Community with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
A Bitmap object created by the Bitmap.Clone method, which uses GdipCloneBitmapArea (or GdipCloneBitmapAreaI) underneath, ends up with a horizontal and vertical resolution of 0. Testing this operation on Windows/.Net, the cloned object should have the same resolution as the original object. The MSDN documentation is silent here, but both PNG and JPEG images were observed to return a cloned Bitmap object with its horizontal and vertical resolution values the same as those in the original Bitmap object.
This is true of both version 3.4 and 4.4. I expect it's still true on the trunk.
https://github.com/mono/libgdiplus/pull/41 is my proposed fix for this bug.
I merged the PR, thank you!