mirror of
https://github.com/greenshot/greenshot
synced 2025-07-30 19:50:11 -07:00
fixed copy/paste error which caused magnified rectangle to be distorted
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2563 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
0a900bc5d2
commit
e6cfe62d59
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ namespace Greenshot.Drawing.Filters {
|
|||
int halfWidth = rect.Width / 2;
|
||||
int halfHeight = rect.Height / 2;
|
||||
int newWidth = rect.Width / magnificationFactor;
|
||||
int newHeight = rect.Width / magnificationFactor;
|
||||
int newHeight = rect.Height / magnificationFactor;
|
||||
Rectangle source = new Rectangle(rect.X + halfWidth - (newWidth / 2), rect.Y + halfHeight - (newHeight / 2), newWidth, newHeight);
|
||||
graphics.DrawImage(applyBitmap, rect, source, GraphicsUnit.Pixel);
|
||||
graphics.Restore(state);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue