Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorBlend.cs / 1 / ColorBlend.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /*************************************************************************\ * * Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved. * * Module Name: * * ColorBlend.cs * * Abstract: * * Native GDI+ Color Blend structure. * * Revision History: * * 9/22/1999 [....] * Created it. * \**************************************************************************/ 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. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- BaseCodeDomTreeGenerator.cs
- DesignerCapabilities.cs
- DesignerLinkAdapter.cs
- HttpCacheParams.cs
- SQLBinary.cs
- RequestCachePolicy.cs
- Sentence.cs
- DLinqAssociationProvider.cs
- WebPartPersonalization.cs
- TypedReference.cs
- SslStream.cs
- HideDisabledControlAdapter.cs
- ToolStripScrollButton.cs
- SQLInt64Storage.cs
- ProviderException.cs
- AutomationPatternInfo.cs
- RequiredFieldValidator.cs
- DiscardableAttribute.cs
- StringArrayConverter.cs
- ObjectSet.cs
- Identity.cs
- ExpressionBindings.cs
- BrowserTree.cs
- ValueTable.cs
- TypeLibConverter.cs
- PropertyItemInternal.cs
- QuaternionKeyFrameCollection.cs
- RowVisual.cs
- LocalFileSettingsProvider.cs
- ReverseComparer.cs
- TypedElement.cs
- TextDecorationCollectionConverter.cs
- DataObjectSettingDataEventArgs.cs
- EmptyElement.cs
- XNodeNavigator.cs
- SingleObjectCollection.cs
- DataGridCellItemAutomationPeer.cs
- BitmapFrame.cs
- GetTokenRequest.cs
- DetailsViewModeEventArgs.cs
- DragEvent.cs
- MetadataProperty.cs
- ThreadStaticAttribute.cs
- NumericUpDownAcceleration.cs
- Renderer.cs
- XmlCharacterData.cs
- UIntPtr.cs
- AbstractSvcMapFileLoader.cs
- Int32AnimationBase.cs
- WindowsRichEditRange.cs
- StructuredProperty.cs
- DetailsViewInsertEventArgs.cs
- CollectionConverter.cs
- LinqDataSourceDisposeEventArgs.cs
- SignerInfo.cs
- EmptyCollection.cs
- TextFindEngine.cs
- WpfPayload.cs
- DeflateStreamAsyncResult.cs
- MyContact.cs
- QilCloneVisitor.cs
- Util.cs
- SplineKeyFrames.cs
- Matrix3DStack.cs
- LoginView.cs
- DataGridViewCellEventArgs.cs
- ResourceManagerWrapper.cs
- XmlEventCache.cs
- ConnectionsZone.cs
- MetadataPropertyvalue.cs
- XmlSchemaValidationException.cs
- StringUtil.cs
- LinqDataSourceContextEventArgs.cs
- ClassHandlersStore.cs
- TextBlockAutomationPeer.cs
- IdentitySection.cs
- WebPartDisplayMode.cs
- IdlingCommunicationPool.cs
- EntityDesignerDataSourceView.cs
- FileLogRecord.cs
- DialogWindow.cs
- WsatConfiguration.cs
- VariableAction.cs
- BookmarkUndoUnit.cs
- UnmanagedMemoryStreamWrapper.cs
- GenericTypeParameterBuilder.cs
- DesignerAdapterAttribute.cs
- MetadataItem.cs
- IPEndPointCollection.cs
- CodeDefaultValueExpression.cs
- BasicKeyConstraint.cs
- OrderPreservingMergeHelper.cs
- mda.cs
- MultiBindingExpression.cs
- BulletDecorator.cs
- XmlIlVisitor.cs
- FixedSOMElement.cs
- RetriableClipboard.cs
- Mapping.cs
- TextMetrics.cs