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
- LingerOption.cs
- KeyInfo.cs
- Stackframe.cs
- RelatedImageListAttribute.cs
- XmlRootAttribute.cs
- TraversalRequest.cs
- WebConvert.cs
- XmlTextReaderImplHelpers.cs
- TransactionWaitAsyncResult.cs
- AttributeCollection.cs
- InfoCardSymmetricCrypto.cs
- ServicePoint.cs
- IntegerValidator.cs
- FormViewPageEventArgs.cs
- AssemblySettingAttributes.cs
- ParserStreamGeometryContext.cs
- Soap.cs
- DataGridTextBoxColumn.cs
- BufferBuilder.cs
- CodeLabeledStatement.cs
- DesignTimeXamlWriter.cs
- Accessible.cs
- XmlSortKeyAccumulator.cs
- WebExceptionStatus.cs
- XmlSchemaSimpleTypeUnion.cs
- ListControl.cs
- TransformedBitmap.cs
- SiblingIterators.cs
- CompilationLock.cs
- CfgArc.cs
- SchemaMerger.cs
- EditorBrowsableAttribute.cs
- RayMeshGeometry3DHitTestResult.cs
- Char.cs
- ScriptingRoleServiceSection.cs
- HttpProfileGroupBase.cs
- NameObjectCollectionBase.cs
- SecurityTokenResolver.cs
- ClickablePoint.cs
- JulianCalendar.cs
- log.cs
- CodeFieldReferenceExpression.cs
- LayoutEvent.cs
- ProcessHost.cs
- Polygon.cs
- XDeferredAxisSource.cs
- XsdBuildProvider.cs
- OdbcDataAdapter.cs
- SevenBitStream.cs
- PathGeometry.cs
- SetterBaseCollection.cs
- CommandSet.cs
- AssemblyBuilderData.cs
- PageScaling.cs
- HealthMonitoringSection.cs
- FontFamily.cs
- IPEndPoint.cs
- URLMembershipCondition.cs
- AmbientProperties.cs
- EdmToObjectNamespaceMap.cs
- RegexCompiler.cs
- RMEnrollmentPage2.cs
- FormViewDeleteEventArgs.cs
- RecordManager.cs
- Socket.cs
- FunctionImportElement.cs
- WebPartEditVerb.cs
- DependencyPropertyKey.cs
- UpdateRecord.cs
- FrameworkContextData.cs
- ImageFormatConverter.cs
- CapiSafeHandles.cs
- DataBindingList.cs
- EnumerableCollectionView.cs
- SafePointer.cs
- ConfigXmlSignificantWhitespace.cs
- ManagementEventArgs.cs
- RichTextBox.cs
- ObjectStateEntryDbDataRecord.cs
- MissingSatelliteAssemblyException.cs
- SystemIPAddressInformation.cs
- FastEncoder.cs
- ResizeGrip.cs
- DesignTimeHTMLTextWriter.cs
- ColumnWidthChangingEvent.cs
- EntityProviderServices.cs
- MsmqInputChannelListenerBase.cs
- StaticSiteMapProvider.cs
- AddInActivator.cs
- MaskInputRejectedEventArgs.cs
- StylusButton.cs
- WindowsListView.cs
- TextBlockAutomationPeer.cs
- DataGridViewImageCell.cs
- EditingScopeUndoUnit.cs
- ResourceFallbackManager.cs
- DefaultValidator.cs
- ModelItemDictionary.cs
- CompModSwitches.cs
- HtmlCommandAdapter.cs