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
- LogicalTreeHelper.cs
- PassportPrincipal.cs
- CodeFieldReferenceExpression.cs
- AutomationPeer.cs
- ChtmlCommandAdapter.cs
- ControlDesigner.cs
- Matrix.cs
- Msec.cs
- WebPartCollection.cs
- BulletedListEventArgs.cs
- MaskedTextBoxDesigner.cs
- SettingsPropertyValueCollection.cs
- ToolBarOverflowPanel.cs
- Ref.cs
- ComponentManagerBroker.cs
- MsmqHostedTransportManager.cs
- TextInfo.cs
- XsltSettings.cs
- RSAPKCS1SignatureDeformatter.cs
- TextDecorationUnitValidation.cs
- RunWorkerCompletedEventArgs.cs
- Subtree.cs
- PublisherMembershipCondition.cs
- Tokenizer.cs
- HiddenFieldPageStatePersister.cs
- HostedElements.cs
- StringReader.cs
- SessionEndingCancelEventArgs.cs
- FirstMatchCodeGroup.cs
- SafeCryptoHandles.cs
- TypeReference.cs
- FilterEventArgs.cs
- SystemIcmpV6Statistics.cs
- MultiSelector.cs
- MouseGestureConverter.cs
- BoolExpr.cs
- NamedPipeConnectionPool.cs
- TextViewSelectionProcessor.cs
- PersonalizationProvider.cs
- GroupStyle.cs
- StylusButtonEventArgs.cs
- ConnectionStringsExpressionEditor.cs
- TextServicesCompartmentEventSink.cs
- RoleGroupCollection.cs
- DataGridView.cs
- GradientBrush.cs
- ExpressionVisitorHelpers.cs
- EventBuilder.cs
- EntitySetBase.cs
- XmlDownloadManager.cs
- PageTrueTypeFont.cs
- JsonFormatReaderGenerator.cs
- EntitySqlQueryState.cs
- NameValueFileSectionHandler.cs
- LinqDataSourceEditData.cs
- WSHttpBindingElement.cs
- TimeoutHelper.cs
- ValidatorCompatibilityHelper.cs
- MsmqIntegrationSecurityElement.cs
- ToolStripSplitStackLayout.cs
- URL.cs
- DictionarySectionHandler.cs
- ApplicationId.cs
- RC2.cs
- TraceSection.cs
- HyperLinkDesigner.cs
- Region.cs
- EditingCommands.cs
- SQLGuid.cs
- BasicViewGenerator.cs
- SecUtil.cs
- AudioFormatConverter.cs
- SchemaCollectionCompiler.cs
- EmptyArray.cs
- ActivityWithResultConverter.cs
- DashStyles.cs
- DictionaryEntry.cs
- AdapterUtil.cs
- safex509handles.cs
- ReturnValue.cs
- AsyncResult.cs
- UrlMappingsModule.cs
- RelativeSource.cs
- SendingRequestEventArgs.cs
- ThicknessAnimation.cs
- ComplexTypeEmitter.cs
- EdmType.cs
- ChangePasswordDesigner.cs
- ResourceProviderFactory.cs
- ObjectCacheHost.cs
- CursorInteropHelper.cs
- WindowsSysHeader.cs
- PackageProperties.cs
- ImageDrawing.cs
- DataPagerFieldCommandEventArgs.cs
- WebChannelFactory.cs
- MessageSecurityException.cs
- QueryStringHandler.cs
- FrameworkElementAutomationPeer.cs
- SqlBuilder.cs