Cleanup, and fixed a bug in the CloneArea method of the ImageHelper.cs

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2506 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
RKrom 2013-02-22 16:27:55 +00:00
commit ec5840550a
4 changed files with 29 additions and 12 deletions

View file

@ -1197,6 +1197,8 @@ namespace GreenshotPlugin.Core {
// Make sure the source is not Rectangle.Empty
if (Rectangle.Empty.Equals(sourceRect)) {
sourceRect = new Rectangle(0, 0, sourceImage.Width, sourceImage.Height);
} else {
sourceRect.Intersect(bitmapRect);
}
// If no pixelformat is supplied