Code:
/ DotNET / DotNET / 8.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
- EntityViewContainer.cs
- CodeDefaultValueExpression.cs
- XmlAttributes.cs
- FileSystemEnumerable.cs
- RuntimeConfigurationRecord.cs
- ArgumentException.cs
- ScriptResourceAttribute.cs
- ConfigXmlCDataSection.cs
- MarginsConverter.cs
- BaseCollection.cs
- HandlerMappingMemo.cs
- CodeGotoStatement.cs
- _Rfc2616CacheValidators.cs
- ObservableDictionary.cs
- altserialization.cs
- ListSourceHelper.cs
- XmlTypeMapping.cs
- DetailsViewUpdatedEventArgs.cs
- XmlSignificantWhitespace.cs
- ProgressBarRenderer.cs
- XamlUtilities.cs
- AspNetCacheProfileAttribute.cs
- MSAAWinEventWrap.cs
- FormViewRow.cs
- WMICapabilities.cs
- safemediahandle.cs
- ProgressPage.cs
- TextEndOfSegment.cs
- HtmlUtf8RawTextWriter.cs
- DetailsViewDeleteEventArgs.cs
- QueryableDataSourceView.cs
- MessageQueueConverter.cs
- TextRunCacheImp.cs
- DataBoundLiteralControl.cs
- SpeakInfo.cs
- Util.cs
- ImageCodecInfo.cs
- RoleManagerSection.cs
- OdbcDataAdapter.cs
- OdbcFactory.cs
- SiteMapSection.cs
- WizardStepBase.cs
- NavigationHelper.cs
- listitem.cs
- BindingExpression.cs
- IOException.cs
- CqlLexer.cs
- DataKey.cs
- Array.cs
- Rect3DValueSerializer.cs
- GridViewRowPresenter.cs
- AudienceUriMode.cs
- IncrementalHitTester.cs
- ItemCheckEvent.cs
- WindowPatternIdentifiers.cs
- Control.cs
- ListViewDeleteEventArgs.cs
- WebBrowsableAttribute.cs
- PauseStoryboard.cs
- AutoResizedEvent.cs
- DecoderReplacementFallback.cs
- PeerReferralPolicy.cs
- PropertyEmitter.cs
- GrammarBuilderPhrase.cs
- ScriptingSectionGroup.cs
- VersionConverter.cs
- VScrollProperties.cs
- SelectingProviderEventArgs.cs
- Shape.cs
- HttpConfigurationContext.cs
- FileAuthorizationModule.cs
- CodeMemberMethod.cs
- Vector3dCollection.cs
- MSAAWinEventWrap.cs
- BrowserTree.cs
- EncryptedXml.cs
- WebPartAddingEventArgs.cs
- Stacktrace.cs
- SiteMapNode.cs
- SqlDataSource.cs
- ObjectStorage.cs
- MouseDevice.cs
- WsdlInspector.cs
- TextMarkerSource.cs
- AliasedSlot.cs
- EntityDataSourceState.cs
- ConnectorEditor.cs
- UIInitializationException.cs
- Stopwatch.cs
- SharedDp.cs
- SecurityDescriptor.cs
- EntityContainerAssociationSet.cs
- BufferedStream.cs
- TextBoxBaseDesigner.cs
- DynamicActivity.cs
- SocketElement.cs
- File.cs
- BuildResultCache.cs
- TextEndOfSegment.cs
- WorkItem.cs