Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- LinkConverter.cs
- GridViewAutomationPeer.cs
- DesignerActionItemCollection.cs
- EventProviderWriter.cs
- DataGridViewRowsAddedEventArgs.cs
- SortableBindingList.cs
- OrderByBuilder.cs
- metrodevice.cs
- TransformerConfigurationWizardBase.cs
- PasswordRecoveryAutoFormat.cs
- ConfigurationElementCollection.cs
- FormViewInsertedEventArgs.cs
- DependencyObjectCodeDomSerializer.cs
- ProgramPublisher.cs
- FeatureSupport.cs
- PersonalizationStateInfo.cs
- WorkflowRuntimeBehavior.cs
- DataPagerFieldItem.cs
- TraceInternal.cs
- AvTraceFormat.cs
- MembershipSection.cs
- BinaryMethodMessage.cs
- XmlQueryType.cs
- Object.cs
- ListArgumentProvider.cs
- DbConnectionPoolCounters.cs
- DataView.cs
- ISAPIApplicationHost.cs
- PropertyIDSet.cs
- WhitespaceRuleReader.cs
- CachedPathData.cs
- DockPattern.cs
- SecurityAlgorithmSuiteConverter.cs
- DispatcherOperation.cs
- PackagePart.cs
- SystemDiagnosticsSection.cs
- MergeFailedEvent.cs
- CqlParserHelpers.cs
- HandlerWithFactory.cs
- StorageScalarPropertyMapping.cs
- Trace.cs
- InstanceLockLostException.cs
- SoapSchemaExporter.cs
- columnmapkeybuilder.cs
- DataTable.cs
- SplitContainer.cs
- _NegoState.cs
- FrameSecurityDescriptor.cs
- RootAction.cs
- GlobalizationSection.cs
- CursorInteropHelper.cs
- SafeSerializationManager.cs
- HttpChannelBindingToken.cs
- StylusEventArgs.cs
- FixedHighlight.cs
- ClusterRegistryConfigurationProvider.cs
- Util.cs
- BitmapMetadataBlob.cs
- PackagePartCollection.cs
- SchemaTypeEmitter.cs
- ImageMap.cs
- XmlElementAttributes.cs
- ToolZoneDesigner.cs
- RestClientProxyHandler.cs
- PieceNameHelper.cs
- AsyncPostBackTrigger.cs
- MdiWindowListStrip.cs
- SystemFonts.cs
- ContentDisposition.cs
- CaseInsensitiveOrdinalStringComparer.cs
- MulticastOption.cs
- _RequestLifetimeSetter.cs
- SizeChangedEventArgs.cs
- XmlSerializerNamespaces.cs
- HandoffBehavior.cs
- TargetConverter.cs
- Rfc4050KeyFormatter.cs
- CustomSignedXml.cs
- DesignerInterfaces.cs
- metadatamappinghashervisitor.cs
- InkPresenter.cs
- ExpressionReplacer.cs
- NoneExcludedImageIndexConverter.cs
- MetricEntry.cs
- FixUp.cs
- ProxyManager.cs
- SqlServer2KCompatibilityCheck.cs
- XDeferredAxisSource.cs
- FrameworkObject.cs
- Cursor.cs
- SessionIDManager.cs
- DataControlCommands.cs
- ResourcesChangeInfo.cs
- ColorBlend.cs
- WeakRefEnumerator.cs
- AuthStoreRoleProvider.cs
- CodeObjectCreateExpression.cs
- Stopwatch.cs
- HotSpotCollection.cs
- ListView.cs