~mantas/pinta/stable

« back to all changes in this revision

Viewing changes to Pinta.Core/Effects/UserBlendOp.cs

  • Committer: Iain Lane
  • Date: 2010-03-13 18:20:18 UTC
  • mfrom: (1.1.2)
  • Revision ID: git-v1:1781694a68ecf232d0110c0b2f3d4a1b96c74ec2
Merge commit 'upstream/0.2'

Conflicts:
        debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/////////////////////////////////////////////////////////////////////////////////
 
2
// Paint.NET                                                                   //
 
3
// Copyright (C) dotPDN LLC, Rick Brewster, Tom Jackson, and contributors.     //
 
4
// Portions Copyright (C) Microsoft Corporation. All Rights Reserved.          //
 
5
// See license-pdn.txt for full licensing and attribution details.             //
 
6
//                                                                             //
 
7
// Ported to Pinta by: Jonathan Pobst <monkey@jpobst.com>                      //
 
8
/////////////////////////////////////////////////////////////////////////////////
 
9
 
 
10
using System;
 
11
 
 
12
namespace Pinta.Core
 
13
{
 
14
        /// <summary>
 
15
        /// Abstract base class that all "user" blend ops derive from.
 
16
        /// These ops are available in the UI for a user to choose from
 
17
        /// in order to configure the blending properties of a Layer.
 
18
        /// 
 
19
        /// See UserBlendOps.cs for guidelines on implementation.
 
20
        /// </summary>
 
21
        [Serializable]
 
22
        public abstract class UserBlendOp : BinaryPixelOp
 
23
        {
 
24
                public virtual UserBlendOp CreateWithOpacity (int opacity)
 
25
                {
 
26
                        return this;
 
27
                }
 
28
 
 
29
                public override string ToString ()
 
30
                {
 
31
                        return Utility.GetStaticName (this.GetType ());
 
32
                }
 
33
        }
 
34
}