Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorBlend.cs / 1305376 / 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 public ColorBlend() { colors = new Color[1]; positions = new float[1]; } ///class. /// /// /// public ColorBlend(int count) { colors = new Color[count]; positions = new float[count]; } ////// Initializes a new instance of the ///class with the specified number of /// colors and positions. /// /// /// 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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewElement.cs
- SignedInfo.cs
- TextChange.cs
- XD.cs
- CharUnicodeInfo.cs
- dbdatarecord.cs
- SettingsPropertyCollection.cs
- ClientTargetSection.cs
- TextBoxBase.cs
- PointAnimation.cs
- ReadWriteSpinLock.cs
- DataComponentGenerator.cs
- CriticalFinalizerObject.cs
- CustomTypeDescriptor.cs
- ExtentKey.cs
- TextBreakpoint.cs
- XmlUnspecifiedAttribute.cs
- X509ChainPolicy.cs
- StringDictionary.cs
- Rectangle.cs
- SamlSubjectStatement.cs
- EntityTypeBase.cs
- CodeDirectiveCollection.cs
- EditBehavior.cs
- Queue.cs
- GestureRecognizer.cs
- EntityDesignerDataSourceView.cs
- StyleCollectionEditor.cs
- ListItemsPage.cs
- XamlRtfConverter.cs
- NotifyInputEventArgs.cs
- OverlappedAsyncResult.cs
- TablePattern.cs
- ObjectPropertyMapping.cs
- PartitionResolver.cs
- TableParagraph.cs
- DSASignatureFormatter.cs
- TextServicesCompartmentContext.cs
- JavaScriptObjectDeserializer.cs
- IntSecurity.cs
- BaseEntityWrapper.cs
- COM2Properties.cs
- ColorTransformHelper.cs
- SqlCacheDependencySection.cs
- TagNameToTypeMapper.cs
- MenuItem.cs
- ImageSource.cs
- SessionIDManager.cs
- ByteKeyFrameCollection.cs
- XmlSchemaSimpleType.cs
- RepeatButton.cs
- ChtmlImageAdapter.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- DashStyle.cs
- MessageEnumerator.cs
- DynamicFilter.cs
- SqlDataSourceStatusEventArgs.cs
- WebPartMenu.cs
- PenThread.cs
- ChangeTracker.cs
- ScriptManager.cs
- BitmapFrame.cs
- SettingsProperty.cs
- ValidationVisibilityAttribute.cs
- TypeLoadException.cs
- PassportPrincipal.cs
- FileIOPermission.cs
- DecimalAnimationBase.cs
- XMLUtil.cs
- SystemIPGlobalStatistics.cs
- ProtectedUri.cs
- StateMachineWorkflowInstance.cs
- SqlNodeTypeOperators.cs
- HwndHostAutomationPeer.cs
- MediaScriptCommandRoutedEventArgs.cs
- PingReply.cs
- ResourceAssociationSet.cs
- TypedTableBaseExtensions.cs
- DoubleAverageAggregationOperator.cs
- FormatterConverter.cs
- IQueryable.cs
- SudsParser.cs
- PageSettings.cs
- indexingfiltermarshaler.cs
- PageRanges.cs
- PerformanceCounterPermissionEntryCollection.cs
- GuidConverter.cs
- CaseExpr.cs
- BindingSource.cs
- SecurityIdentifierElementCollection.cs
- StatusBar.cs
- Double.cs
- HScrollProperties.cs
- DataObjectFieldAttribute.cs
- ChangesetResponse.cs
- BatchServiceHost.cs
- LabelExpression.cs
- DataGridViewTopRowAccessibleObject.cs
- KeyEventArgs.cs
- DefaultAuthorizationContext.cs