Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorBlend.cs / 2 / ColorBlend.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Drawing.Drawing2D {
using System.Diagnostics;
using System;
using System.Drawing;
///
///
/// Defines arrays of colors and positions used
/// for interpolating color blending in a gradient.
///
public sealed class ColorBlend {
Color[] colors;
float[] positions;
///
///
/// Initializes a new instance of the class.
///
public ColorBlend() {
colors = new Color[1];
positions = new float[1];
}
///
///
///
/// Initializes a new instance of the class with the specified number of
/// colors and positions.
///
///
public ColorBlend(int count) {
colors = new Color[count];
positions = new float[count];
}
///
///
/// Represents an array of colors.
///
public Color[] Colors {
get {
return colors;
}
set {
colors = value;
}
}
///
///
/// Represents the positions along a gradient
/// line.
///
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.
//
//-----------------------------------------------------------------------------
namespace System.Drawing.Drawing2D {
using System.Diagnostics;
using System;
using System.Drawing;
///
///
/// Defines arrays of colors and positions used
/// for interpolating color blending in a gradient.
///
public sealed class ColorBlend {
Color[] colors;
float[] positions;
///
///
/// Initializes a new instance of the class.
///
public ColorBlend() {
colors = new Color[1];
positions = new float[1];
}
///
///
///
/// Initializes a new instance of the class with the specified number of
/// colors and positions.
///
///
public ColorBlend(int count) {
colors = new Color[count];
positions = new float[count];
}
///
///
/// Represents an array of colors.
///
public Color[] Colors {
get {
return colors;
}
set {
colors = value;
}
}
///
///
/// Represents the positions along a gradient
/// line.
///
public float[] Positions {
get {
return positions;
}
set {
positions = value;
}
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SqlLiftIndependentRowExpressions.cs
- WpfGeneratedKnownTypes.cs
- QueryOptionExpression.cs
- InternalBase.cs
- TraceContextRecord.cs
- ViewBase.cs
- HttpCapabilitiesEvaluator.cs
- DataSourceGeneratorException.cs
- SapiGrammar.cs
- CharacterString.cs
- Array.cs
- ExceptionCollection.cs
- ProgressBar.cs
- MessageVersionConverter.cs
- ItemCollection.cs
- WebPartVerb.cs
- WorkflowOperationContext.cs
- CompareValidator.cs
- LazyInitializer.cs
- Win32Native.cs
- TreeNodeBinding.cs
- BindableAttribute.cs
- SqlDataSourceStatusEventArgs.cs
- PersonalizableTypeEntry.cs
- ConfigurationSection.cs
- CharStorage.cs
- RijndaelManagedTransform.cs
- DataMisalignedException.cs
- DataReaderContainer.cs
- InputDevice.cs
- HierarchicalDataTemplate.cs
- TemplatePartAttribute.cs
- PriorityChain.cs
- InfoCardKeyedHashAlgorithm.cs
- RotateTransform3D.cs
- FileCodeGroup.cs
- AutoScrollExpandMessageFilter.cs
- XmlIlGenerator.cs
- TransformedBitmap.cs
- TableDetailsRow.cs
- ProviderUtil.cs
- Odbc32.cs
- QueryPageSettingsEventArgs.cs
- ProfileManager.cs
- FormsAuthenticationConfiguration.cs
- XmlCodeExporter.cs
- DBAsyncResult.cs
- Errors.cs
- CollectionChangeEventArgs.cs
- SupportingTokenSecurityTokenResolver.cs
- Convert.cs
- GeneralTransform.cs
- OleDbErrorCollection.cs
- CodeAttachEventStatement.cs
- HttpModuleCollection.cs
- SerializationEventsCache.cs
- RectangleGeometry.cs
- StackSpiller.Temps.cs
- HMACSHA1.cs
- RelationshipSet.cs
- CodeSnippetTypeMember.cs
- CodeExpressionStatement.cs
- AncillaryOps.cs
- OleDbEnumerator.cs
- SelectionRange.cs
- AutomationProperty.cs
- UTF7Encoding.cs
- FloaterBaseParagraph.cs
- TimelineCollection.cs
- TextDataBindingHandler.cs
- DataRowView.cs
- WriteableBitmap.cs
- ClientSettingsProvider.cs
- SetIterators.cs
- DefaultParameterValueAttribute.cs
- ConnectionsZone.cs
- ImmutableCollection.cs
- StorageEndPropertyMapping.cs
- ArraySet.cs
- CompModSwitches.cs
- Rect3D.cs
- DateTimeOffset.cs
- WebPartCatalogCloseVerb.cs
- DataBinding.cs
- GridViewRowPresenterBase.cs
- XXXInfos.cs
- QuaternionConverter.cs
- ErrorLog.cs
- TextPattern.cs
- MouseEvent.cs
- TemplateComponentConnector.cs
- ConfigPathUtility.cs
- LogPolicy.cs
- QueuePropertyVariants.cs
- XmlMembersMapping.cs
- SapiRecognizer.cs
- IntSecurity.cs
- SizeChangedInfo.cs
- MergeLocalizationDirectives.cs
- CodeTypeReferenceCollection.cs