Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServerProtocol.cs
- IndicFontClient.cs
- DataGridColumnCollection.cs
- CqlBlock.cs
- SafeSecurityHelper.cs
- VScrollProperties.cs
- Int32AnimationUsingKeyFrames.cs
- DataServicePagingProviderWrapper.cs
- Rfc2898DeriveBytes.cs
- RemotingException.cs
- SelectorAutomationPeer.cs
- DataObjectPastingEventArgs.cs
- XmlNodeComparer.cs
- QuaternionRotation3D.cs
- RankException.cs
- XamlParser.cs
- DataGridViewBindingCompleteEventArgs.cs
- HttpNamespaceReservationInstallComponent.cs
- InputDevice.cs
- SecurityTokenValidationException.cs
- MergablePropertyAttribute.cs
- HeaderPanel.cs
- ImageKeyConverter.cs
- EventMappingSettingsCollection.cs
- ParsedAttributeCollection.cs
- StringKeyFrameCollection.cs
- AccessibleObject.cs
- LoginName.cs
- HostUtils.cs
- MetadataCacheItem.cs
- RouteCollection.cs
- TypeUsage.cs
- XmlAnyAttributeAttribute.cs
- ErrorFormatter.cs
- BitmapMetadataEnumerator.cs
- MetaDataInfo.cs
- QilDataSource.cs
- ZipIOFileItemStream.cs
- ProviderConnectionPointCollection.cs
- ItemsControl.cs
- RepeaterItemEventArgs.cs
- ColorConvertedBitmapExtension.cs
- WindowsFormsHelpers.cs
- GroupBox.cs
- IntSecurity.cs
- NonBatchDirectoryCompiler.cs
- CreateParams.cs
- UserInitiatedNavigationPermission.cs
- CategoryAttribute.cs
- DiagnosticsElement.cs
- BamlWriter.cs
- MediaSystem.cs
- User.cs
- ImageSource.cs
- CLRBindingWorker.cs
- StringHandle.cs
- SiteMembershipCondition.cs
- XmlRawWriterWrapper.cs
- DataServiceQueryOfT.cs
- BitmapInitialize.cs
- EmptyControlCollection.cs
- Enlistment.cs
- DataGridViewColumnTypeEditor.cs
- DataSetMappper.cs
- ToolboxItemCollection.cs
- MediaScriptCommandRoutedEventArgs.cs
- FilteredAttributeCollection.cs
- ListBox.cs
- EntityParameter.cs
- ReferenceEqualityComparer.cs
- FixedHyperLink.cs
- XmlSchemaSimpleContent.cs
- CasesDictionary.cs
- XsltLoader.cs
- GeometryValueSerializer.cs
- WorkerProcess.cs
- PngBitmapDecoder.cs
- Floater.cs
- SqlInternalConnectionTds.cs
- TextDecorations.cs
- QueryHandler.cs
- TableLayoutPanel.cs
- ColumnWidthChangingEvent.cs
- VisualState.cs
- GlyphsSerializer.cs
- StrongNameUtility.cs
- CatalogPartDesigner.cs
- JumpItem.cs
- SectionInput.cs
- ResourceManagerWrapper.cs
- WindowsListViewSubItem.cs
- WebResourceAttribute.cs
- AsymmetricAlgorithm.cs
- Context.cs
- OracleBoolean.cs
- HttpDictionary.cs
- PlatformNotSupportedException.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- RenamedEventArgs.cs
- BitmapPalettes.cs