Skip to content

Commit

Permalink
Merge pull request #4487 from dellis1972/Bug1946
Browse files Browse the repository at this point in the history
Fixed #1946 Turns out the Image needs to be cleared first otherwise the colors bleed.
  • Loading branch information
tomspilman committed Feb 2, 2016
2 parents 40ca86c + 6a0d460 commit 2aecb22
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MonoGame.Framework/Graphics/ImageEx.cs
Expand Up @@ -38,6 +38,7 @@ internal static Image RGBToBGR(this Image bmp)
ia.SetColorMatrix(cm);
using (System.Drawing.Graphics g = System.Drawing.Graphics.FromImage(newBmp))
{
g.Clear(Color.Transparent);
g.DrawImage(bmp, new System.Drawing.Rectangle(0, 0, bmp.Width, bmp.Height), 0, 0, bmp.Width, bmp.Height, System.Drawing.GraphicsUnit.Pixel, ia);
}
}
Expand Down

2 comments on commit 2aecb22

@mgbot
Copy link
Member

@mgbot mgbot commented on 2aecb22 Feb 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity MonoGame :: Develop (Win) Build 3.5.0.1288 is now running

@mgbot
Copy link
Member

@mgbot mgbot commented on 2aecb22 Feb 2, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TeamCity MonoGame :: Develop (Win) Build 3.5.0.1288 outcome was SUCCESS
Summary: Tests passed: 584, ignored: 6 Build time: 00:30:16

Please sign in to comment.