Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorBlend.cs / 1305376 / 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
- DbConnectionClosed.cs
- securitycriticaldataformultiplegetandset.cs
- SharedPerformanceCounter.cs
- VisualStyleElement.cs
- TextElementEnumerator.cs
- FixedNode.cs
- FileUpload.cs
- ADMembershipProvider.cs
- SelectionPatternIdentifiers.cs
- DataSourceNameHandler.cs
- CodeDOMProvider.cs
- CommonDialog.cs
- XmlMapping.cs
- AppDomainAttributes.cs
- CatalogPart.cs
- ObjectDataSource.cs
- ConstraintConverter.cs
- WebPartDescriptionCollection.cs
- ByteStack.cs
- ActivationArguments.cs
- Currency.cs
- ToolStripItemTextRenderEventArgs.cs
- KerberosSecurityTokenProvider.cs
- GenericEnumConverter.cs
- OleDbMetaDataFactory.cs
- XmlObjectSerializerReadContextComplexJson.cs
- HatchBrush.cs
- MaskDesignerDialog.cs
- CodeAttributeDeclaration.cs
- CodeSubDirectory.cs
- FlowSwitchDesigner.xaml.cs
- TagPrefixInfo.cs
- StyleSelector.cs
- ScriptResourceDefinition.cs
- DetailsViewDeletedEventArgs.cs
- ByteStreamMessageEncoderFactory.cs
- ResourcePermissionBase.cs
- SessionStateSection.cs
- DataGridColumnHeaderCollection.cs
- UDPClient.cs
- ReliableInputConnection.cs
- DesignerView.cs
- SafeRightsManagementQueryHandle.cs
- ConnectorSelectionGlyph.cs
- OdbcEnvironmentHandle.cs
- loginstatus.cs
- Duration.cs
- HybridWebProxyFinder.cs
- DataServiceRequestException.cs
- ConfigsHelper.cs
- Convert.cs
- TypeGeneratedEventArgs.cs
- ViewGenResults.cs
- metadatamappinghashervisitor.cs
- MemberDomainMap.cs
- JournalNavigationScope.cs
- XmlSchemaComplexContent.cs
- MtomMessageEncoder.cs
- TextCollapsingProperties.cs
- Control.cs
- MarkupCompiler.cs
- CapabilitiesState.cs
- PasswordBoxAutomationPeer.cs
- _Win32.cs
- IdentityHolder.cs
- XmlSchemaComplexContent.cs
- Stroke.cs
- ColorAnimationBase.cs
- RoutedEventArgs.cs
- TextRunTypographyProperties.cs
- BypassElementCollection.cs
- ByteAnimationBase.cs
- RecordManager.cs
- ProcessRequestAsyncResult.cs
- InputQueue.cs
- _ContextAwareResult.cs
- DBParameter.cs
- EasingQuaternionKeyFrame.cs
- ComboBox.cs
- UnauthorizedAccessException.cs
- Executor.cs
- ChtmlTextBoxAdapter.cs
- SequentialOutput.cs
- DataSourceControlBuilder.cs
- EntityModelBuildProvider.cs
- FormsIdentity.cs
- TouchEventArgs.cs
- complextypematerializer.cs
- OutputCacheSection.cs
- SpecularMaterial.cs
- VolatileResourceManager.cs
- RuntimeWrappedException.cs
- FileUtil.cs
- RemoteWebConfigurationHostStream.cs
- WsdlWriter.cs
- IndexOutOfRangeException.cs
- Sentence.cs
- SynchronizedInputHelper.cs
- FigureHelper.cs
- ColumnBinding.cs