Blend.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / Blend.cs / 1 / Blend.cs

                            //------------------------------------------------------------------------------ 
// 
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// 
//----------------------------------------------------------------------------- 

 
/*************************************************************************\ 
*
* Copyright (c) 1998-1999, Microsoft Corp.  All Rights Reserved. 
*
* Module Name:
*
*   Blend.cs 
*
* Abstract: 
* 
*   Native GDI+ Blend structure.
* 
* Revision History:
*
*   9/22/1999 [....]
*       Created it. 
*
\**************************************************************************/ 
 
namespace System.Drawing.Drawing2D {
 
    using System.Diagnostics;

    using System;
    using System.Drawing; 

    ///  
    ///  
    ///    
    ///       Defines a blend pattern for a  
    ///       .
    ///    
    /// 
    public sealed class Blend { 
        float[] factors;
        float[] positions; 
 
        /// 
        ///  
        ///    
        ///       Initializes a new instance of the 
        ///       class.
        ///     
        /// 
        public Blend() { 
            factors = new float[1]; 
            positions = new float[1];
        } 

        /// 
        /// 
        ///     
        ///       Initializes a new instance of the 
        ///       class with the specified number of factors and positions. 
        ///     
        /// 
        public Blend(int count) { 
            factors = new float[count];
            positions = new float[count];
        }
        ///  
        /// 
        ///    Specifies an array of blend factors for the 
        ///    gradient. 
        /// 
        public float[] Factors { 
            get {
                return factors;
            }
            set { 
                factors = value;
            } 
        } 

        ///  
        /// 
        ///    
        ///       Specifies an array of blend positions for the gradient.
        ///     
        /// 
        public float[] Positions { 
            get { 
                return positions;
            } 
            set {
                positions = value;
            }
        } 
    }
 
} 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007. 
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK