Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (29 sloc) 1.184 kB
/////////////////////////////////////////////////////////////////////////////////
// Paint.NET //
// Copyright (C) dotPDN LLC, Rick Brewster, Tom Jackson, and contributors. //
// Portions Copyright (C) Microsoft Corporation. All Rights Reserved. //
// See license-pdn.txt for full licensing and attribution details. //
// //
// Ported to Pinta by: Jonathan Pobst <monkey@jpobst.com> //
/////////////////////////////////////////////////////////////////////////////////
using System;
using Pinta.ImageManipulation.UnaryPixelOperations;
namespace Pinta.ImageManipulation.Effects
{
public class InvertColorsEffect : BaseEffect
{
private InvertOp op = new InvertOp ();
/// <summary>
/// Creates a new effect that will invert the colors of an image.
/// </summary>
public InvertColorsEffect ()
{
}
#region Algorithm Code Ported From PDN
protected override void RenderLine (ISurface src, ISurface dest, Rectangle roi)
{
op.Apply (src, dest, roi);
}
#endregion
}
}
Jump to Line
Something went wrong with that request. Please try again.