mirror of
https://github.com/greenshot/greenshot
synced 2025-08-19 21:13:23 -07:00
Moving back to trunk!
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1602 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
ad265b2c54
commit
8d458998a1
332 changed files with 17647 additions and 9466 deletions
|
@ -20,7 +20,6 @@
|
|||
*/
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Drawing.Drawing2D;
|
||||
using System.Drawing.Printing;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
@ -29,6 +28,7 @@ using Greenshot.Drawing;
|
|||
using Greenshot.Forms;
|
||||
using Greenshot.Plugin;
|
||||
using GreenshotPlugin.Core;
|
||||
using IniFile;
|
||||
|
||||
namespace Greenshot.Helpers {
|
||||
/// <summary>
|
||||
|
@ -124,16 +124,16 @@ namespace Greenshot.Helpers {
|
|||
|
||||
if (conf.OutputPrintInverted) {
|
||||
// Invert Bitmap
|
||||
BitmapBuffer bb = new BitmapBuffer((Bitmap)image, false);
|
||||
bb.Lock();
|
||||
for(int y=0;y<bb.Height; y++) {
|
||||
for(int x=0;x<bb.Width; x++) {
|
||||
Color color = bb.GetColorAt(x, y);
|
||||
Color invertedColor = Color.FromArgb(color.A, color.R ^ 255, color.G ^ 255, color.B ^ 255);
|
||||
bb.SetColorAt(x, y, invertedColor);
|
||||
using (BitmapBuffer bb = new BitmapBuffer((Bitmap)image, false)) {
|
||||
bb.Lock();
|
||||
for(int y=0;y<bb.Height; y++) {
|
||||
for(int x=0;x<bb.Width; x++) {
|
||||
Color color = bb.GetColorAt(x, y);
|
||||
Color invertedColor = Color.FromArgb(color.A, color.R ^ 255, color.G ^ 255, color.B ^ 255);
|
||||
bb.SetColorAt(x, y, invertedColor);
|
||||
}
|
||||
}
|
||||
}
|
||||
bb.Dispose();
|
||||
}
|
||||
|
||||
RectangleF pageRect = e.PageSettings.PrintableArea;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue