Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorBlend.cs / 1 / 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
- ColorInterpolationModeValidation.cs
- HijriCalendar.cs
- EmptyEnumerator.cs
- ListDictionaryInternal.cs
- DataGridViewAccessibleObject.cs
- CodeParameterDeclarationExpressionCollection.cs
- ConfigXmlComment.cs
- DelegatingTypeDescriptionProvider.cs
- URLMembershipCondition.cs
- PrintingPermission.cs
- Script.cs
- AncestorChangedEventArgs.cs
- RuntimeHandles.cs
- ContentPlaceHolder.cs
- OracleBFile.cs
- TextEditorParagraphs.cs
- WeakRefEnumerator.cs
- CodeSnippetCompileUnit.cs
- WebPartPersonalization.cs
- HtmlTableCell.cs
- SqlDeflator.cs
- NetDataContractSerializer.cs
- BitmapEffectGroup.cs
- RectConverter.cs
- ShaderEffect.cs
- ProfileSettingsCollection.cs
- WaitHandle.cs
- Image.cs
- VirtualPathProvider.cs
- DataGridViewLayoutData.cs
- ExceptionHandlerDesigner.cs
- DecoderReplacementFallback.cs
- BrowserDefinitionCollection.cs
- SurrogateChar.cs
- GenericIdentity.cs
- TypeNameHelper.cs
- ReliableOutputSessionChannel.cs
- CfgArc.cs
- InkPresenter.cs
- TrackingStringDictionary.cs
- XmlSerializationGeneratedCode.cs
- StaticExtensionConverter.cs
- SymLanguageType.cs
- UnsafeNativeMethods.cs
- FigureParaClient.cs
- Buffer.cs
- ISSmlParser.cs
- Number.cs
- GeneralTransform3D.cs
- CreateInstanceBinder.cs
- TextTreeObjectNode.cs
- TileModeValidation.cs
- SqlDelegatedTransaction.cs
- Delegate.cs
- OleDbConnectionInternal.cs
- InputReferenceExpression.cs
- X509SecurityTokenParameters.cs
- CoreSwitches.cs
- SignatureHelper.cs
- PrivateFontCollection.cs
- SizeConverter.cs
- OledbConnectionStringbuilder.cs
- DeviceContexts.cs
- RuntimeArgumentHandle.cs
- SystemTcpStatistics.cs
- DataViewSetting.cs
- IResourceProvider.cs
- WorkflowMarkupSerializationException.cs
- LambdaReference.cs
- TextElementEnumerator.cs
- MediaTimeline.cs
- TypeValidationEventArgs.cs
- CommandField.cs
- ADRoleFactory.cs
- NameSpaceExtractor.cs
- _IPv6Address.cs
- XmlAtomicValue.cs
- DocumentGridContextMenu.cs
- PropertyEmitterBase.cs
- RepeatButtonAutomationPeer.cs
- WindowsSlider.cs
- ZipPackagePart.cs
- FormsAuthenticationTicket.cs
- MatrixCamera.cs
- InvokeHandlers.cs
- RijndaelManagedTransform.cs
- Geometry.cs
- XmlSchemaCompilationSettings.cs
- WebBrowserSiteBase.cs
- XPathArrayIterator.cs
- SecondaryIndexList.cs
- xmlformatgeneratorstatics.cs
- WindowsTokenRoleProvider.cs
- SerializeAbsoluteContext.cs
- DataSetMappper.cs
- FontWeights.cs
- RegexFCD.cs
- UnsafeNativeMethods.cs
- TraceListener.cs
- SqlNotificationEventArgs.cs