Bug 25757 - System.Drawing.Graphics ClearRect and fill rect do not happen without some delay.
Summary: System.Drawing.Graphics ClearRect and fill rect do not happen without some de...
Status: NEW
Alias: None
Product: Class Libraries
Classification: Mono
Component: System.Drawing ()
Version: unspecified
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2015-01-06 16:45 UTC by Jonathan Wills
Modified: 2015-01-06 16:45 UTC (History)
1 user (show)

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

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 25757 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 Jonathan Wills 2015-01-06 16:45:21 UTC
During the creation of a project creating a Windows Forms control that can render Animated PNGs I encountered an issue with drawing over old frames when the new frame had a transparent background. Due to the data on the frame the screen is required to replace the image with transparent black before doing a complete redraw. When this code executes on Windows it works fine however when attempting on Mac the image blurs together. If I would draw once every other frame it would clear properly but it would not perform the clear correctly otherwise. The code that is affected can be found here: https://github.com/Bungalow12/AnimatedImage/blob/master/AnimatedImages/AnimatedPictureBox.cs in the OnPaint method starting at Line 45. As you can see I tried multiple attempts to work around this from the commented out code. 
The example image is bounce.png and is included in the Viewer portion of the project.