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
- TextAutomationPeer.cs
- SerialPort.cs
- isolationinterop.cs
- HttpModuleActionCollection.cs
- Set.cs
- ImmComposition.cs
- brushes.cs
- ConnectionStringsExpressionBuilder.cs
- DataGridViewComboBoxColumn.cs
- DynamicResourceExtension.cs
- TransformerTypeCollection.cs
- sapiproxy.cs
- thaishape.cs
- ContextMarshalException.cs
- HttpResponseHeader.cs
- FormViewDesigner.cs
- CategoryValueConverter.cs
- DrawingContextWalker.cs
- FormattedTextSymbols.cs
- CompilerResults.cs
- CounterSetInstanceCounterDataSet.cs
- PathData.cs
- AsymmetricAlgorithm.cs
- AttributeQuery.cs
- RayHitTestParameters.cs
- ForEachAction.cs
- xamlnodes.cs
- EntityExpressionVisitor.cs
- InvalidDataContractException.cs
- ResolveNextArgumentWorkItem.cs
- GiveFeedbackEventArgs.cs
- PtsHost.cs
- PropertyChangingEventArgs.cs
- SQLSingleStorage.cs
- CodeMemberMethod.cs
- TypeEnumerableViewSchema.cs
- XsdBuildProvider.cs
- DataGridViewIntLinkedList.cs
- sqlstateclientmanager.cs
- Property.cs
- StreamSecurityUpgradeInitiator.cs
- MetadataArtifactLoaderFile.cs
- EventProxy.cs
- PolicyValidationException.cs
- CodeDefaultValueExpression.cs
- MethodBody.cs
- SafeBitVector32.cs
- NamespaceInfo.cs
- DateTimeConstantAttribute.cs
- GorillaCodec.cs
- ProfileBuildProvider.cs
- DataRecordObjectView.cs
- EntityDataSourceEntityTypeFilterItem.cs
- CompositeCollection.cs
- Typeface.cs
- WrapPanel.cs
- XPathConvert.cs
- IISMapPath.cs
- SafeFileHandle.cs
- IntegerValidatorAttribute.cs
- Graphics.cs
- BamlRecords.cs
- VisualBasicSettingsHandler.cs
- SerializationObjectManager.cs
- DataGridViewCellValueEventArgs.cs
- JsonFormatMapping.cs
- entityreference_tresulttype.cs
- Pair.cs
- BaseCodeDomTreeGenerator.cs
- BrowserTree.cs
- MouseEvent.cs
- ColumnResult.cs
- LinqDataSourceView.cs
- TriggerBase.cs
- SrgsText.cs
- SqlCacheDependencySection.cs
- smtpconnection.cs
- TreeNode.cs
- PointAnimationUsingPath.cs
- StateBag.cs
- XmlSchemaAttributeGroupRef.cs
- EntityViewGenerationAttribute.cs
- Font.cs
- OleAutBinder.cs
- ISCIIEncoding.cs
- SByteConverter.cs
- MailFileEditor.cs
- XmlBindingWorker.cs
- XmlCharCheckingReader.cs
- Transform3DCollection.cs
- ThicknessAnimation.cs
- SafeNativeMethods.cs
- XmlnsDictionary.cs
- TemplatePartAttribute.cs
- CodeNamespace.cs
- StringUtil.cs
- HotSpotCollectionEditor.cs
- ConnectionStringsExpressionBuilder.cs
- State.cs
- EventInfo.cs