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
- PreviewKeyDownEventArgs.cs
- IntMinMaxAggregationOperator.cs
- NestPullup.cs
- ToolStripLabel.cs
- TreeView.cs
- ImageSource.cs
- Int16AnimationBase.cs
- HtmlTableRowCollection.cs
- GeneralTransformGroup.cs
- StringDictionary.cs
- ExtractedStateEntry.cs
- WindowsRichEdit.cs
- safesecurityhelperavalon.cs
- CallSiteOps.cs
- WebPartTracker.cs
- DesignerWebPartChrome.cs
- XmlBinaryReader.cs
- GroupBox.cs
- BamlLocalizabilityResolver.cs
- OdbcInfoMessageEvent.cs
- returneventsaver.cs
- CursorConverter.cs
- EndpointNameMessageFilter.cs
- ReferencedType.cs
- COM2PictureConverter.cs
- SelfIssuedTokenFactoryCredential.cs
- BitmapEffectDrawingContent.cs
- RectangleGeometry.cs
- MaterializeFromAtom.cs
- GifBitmapDecoder.cs
- XD.cs
- Nullable.cs
- VirtualPath.cs
- ExtendedPropertyDescriptor.cs
- AttachInfo.cs
- DesignSurfaceManager.cs
- SpellCheck.cs
- Serializer.cs
- HttpVersion.cs
- PolicyException.cs
- BooleanFunctions.cs
- ZoneLinkButton.cs
- SoapElementAttribute.cs
- OpenTypeLayout.cs
- KnownColorTable.cs
- DocumentViewerConstants.cs
- ReferentialConstraint.cs
- TemplateBindingExtensionConverter.cs
- ElementAction.cs
- PLINQETWProvider.cs
- OdbcHandle.cs
- ApplicationSecurityManager.cs
- WorkflowTransactionOptions.cs
- Validator.cs
- ValueTable.cs
- MetaForeignKeyColumn.cs
- ObjectPersistData.cs
- GroupBox.cs
- ProcessModule.cs
- JournalNavigationScope.cs
- CanonicalXml.cs
- Privilege.cs
- NamespaceQuery.cs
- DataGridViewComboBoxEditingControl.cs
- Model3D.cs
- DetailsViewCommandEventArgs.cs
- WindowsTitleBar.cs
- StringDictionaryEditor.cs
- DmlSqlGenerator.cs
- CaseStatement.cs
- TraceProvider.cs
- HostingEnvironmentSection.cs
- OdbcConnectionString.cs
- arabicshape.cs
- FixedDSBuilder.cs
- Errors.cs
- DesignTimeValidationFeature.cs
- MemoryStream.cs
- SHA512.cs
- DataQuery.cs
- JournalEntryStack.cs
- ChangeTracker.cs
- TextTreeUndoUnit.cs
- RichTextBox.cs
- ConfigXmlText.cs
- TypedTableBaseExtensions.cs
- ProfileBuildProvider.cs
- OletxDependentTransaction.cs
- OracleSqlParser.cs
- MetadataSet.cs
- ValidationRuleCollection.cs
- SoapException.cs
- EnumerableRowCollection.cs
- embossbitmapeffect.cs
- XmlCharacterData.cs
- X509SecurityTokenProvider.cs
- MexBindingBindingCollectionElement.cs
- XmlBinaryReaderSession.cs
- SizeKeyFrameCollection.cs
- AudioFormatConverter.cs