Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorBlend.cs / 2 / 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. //------------------------------------------------------------------------------ //// 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
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- NGCSerializer.cs
- PipeStream.cs
- SemanticResultValue.cs
- FreezableCollection.cs
- XmlAnyAttributeAttribute.cs
- RoutedUICommand.cs
- RtfToXamlReader.cs
- FunctionDefinition.cs
- EllipseGeometry.cs
- ToolBarButtonClickEvent.cs
- StoreItemCollection.cs
- Simplifier.cs
- XpsFilter.cs
- GrammarBuilderWildcard.cs
- PlatformCulture.cs
- ToolStripOverflowButton.cs
- KeyPullup.cs
- SoapHeaderAttribute.cs
- MasterPageParser.cs
- SelectedGridItemChangedEvent.cs
- SafeUserTokenHandle.cs
- DesigntimeLicenseContext.cs
- SortKey.cs
- ButtonAutomationPeer.cs
- TableAdapterManagerMethodGenerator.cs
- UInt64.cs
- XmlSiteMapProvider.cs
- FormClosingEvent.cs
- SHA512Managed.cs
- DataGridViewDataConnection.cs
- Icon.cs
- XPathExpr.cs
- Preprocessor.cs
- SystemColorTracker.cs
- MILUtilities.cs
- TargetParameterCountException.cs
- ImageButton.cs
- XmlMemberMapping.cs
- AppDomainManager.cs
- DataStreams.cs
- GridView.cs
- ToolStripDropDownItem.cs
- ValueTypeIndexerReference.cs
- Transform.cs
- ColumnClickEvent.cs
- DoubleLink.cs
- ConnectionPoint.cs
- Tuple.cs
- Identifier.cs
- XmlSchemaException.cs
- UnsafeNativeMethodsMilCoreApi.cs
- ObjectDataSourceFilteringEventArgs.cs
- DataBindingExpressionBuilder.cs
- GroupBoxRenderer.cs
- Expressions.cs
- TabControl.cs
- ActivityMetadata.cs
- OleDbSchemaGuid.cs
- ConnectionPoint.cs
- CharUnicodeInfo.cs
- ResourcesGenerator.cs
- FactoryId.cs
- Helpers.cs
- TemplatedEditableDesignerRegion.cs
- NamespaceInfo.cs
- CompilerParameters.cs
- RangeContentEnumerator.cs
- QuotedPrintableStream.cs
- _TransmitFileOverlappedAsyncResult.cs
- CompositeDataBoundControl.cs
- XmlSerializationGeneratedCode.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TaskScheduler.cs
- RelationshipType.cs
- StateItem.cs
- DataFormat.cs
- SymbolMethod.cs
- ProcessHostFactoryHelper.cs
- ApplicationInfo.cs
- XmlSerializerNamespaces.cs
- odbcmetadatacolumnnames.cs
- VariantWrapper.cs
- __TransparentProxy.cs
- Model3DGroup.cs
- WebResourceUtil.cs
- SqlDataSourceEnumerator.cs
- DbParameterCollection.cs
- SmtpTransport.cs
- _ProxyChain.cs
- __ConsoleStream.cs
- SoapIgnoreAttribute.cs
- AttributeData.cs
- NullableDoubleAverageAggregationOperator.cs
- StatusBarItem.cs
- ConfigurationStrings.cs
- WebHttpBindingCollectionElement.cs
- ListBindingConverter.cs
- SystemTcpConnection.cs
- GenericEnumConverter.cs
- WorkflowPrinting.cs