Bug 17966 - ImageView uses Nearest Neighbor scaling instead of Bicubic or Bilinear
Summary: ImageView uses Nearest Neighbor scaling instead of Bicubic or Bilinear
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: Windows.Forms ()
Version: unspecified
Hardware: PC Linux
: --- normal
Target Milestone: Community
Assignee: Bugzilla
Depends on:
Reported: 2014-02-24 12:18 UTC by Alex West
Modified: 2017-09-01 11:56 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Binary used for testing (480.50 KB, application/octet-stream)
2014-02-24 12:19 UTC, Alex West

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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 for Bug 17966 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Alex West 2014-02-24 12:18:40 UTC
In my application, I display a full-resolution bitmap in an ImageView using WinForms. Using .NET on Windows, the image scales using bicubic resizing, making the image seem smooth and crisp. However, under Mono on Linux (Ubuntu 12.04 LTS), the image scales to the dimensions of the ImageView using what appears to be a nearest neighbor scaling method.

Windows comparison: http://puu.sh/78UyK.png
Linux comparison: http://puu.sh/78Upp.png

If it's helpful at all, this is the exact same executable compiled for .NET 4.0 using Visual Studio 2012.
Comment 1 Alex West 2014-02-24 12:19:39 UTC
Created attachment 6129 [details]
Binary used for testing

Attached the binary used for testing.
Comment 2 Alex West 2014-02-27 12:16:18 UTC
I'd also like to add that I'm not using .NET 4 specific functions and it compiles fine under 2.0, I just use 4.0 because it multithreads the launch so it opens faster.

My source is available for viewing here:

This should be an easy bug to reproduce, though.