Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorBlend.cs / 1 / 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
- PropertyKey.cs
- BamlLocalizableResource.cs
- DrawingAttributesDefaultValueFactory.cs
- PaintEvent.cs
- StringExpressionSet.cs
- GestureRecognizer.cs
- VisualStyleTypesAndProperties.cs
- FontSource.cs
- ObjectView.cs
- UrlPath.cs
- RawStylusSystemGestureInputReport.cs
- DataTableCollection.cs
- SystemIcmpV4Statistics.cs
- PolyQuadraticBezierSegment.cs
- Exception.cs
- FormViewInsertEventArgs.cs
- DocumentViewerBaseAutomationPeer.cs
- OleDbParameterCollection.cs
- BackgroundWorker.cs
- Scripts.cs
- FixedDocumentSequencePaginator.cs
- TableNameAttribute.cs
- AggregateException.cs
- CopyOfAction.cs
- ContourSegment.cs
- SecurityDescriptor.cs
- SR.cs
- SmiContextFactory.cs
- FrameworkContextData.cs
- EntityException.cs
- ButtonBase.cs
- ZipIOCentralDirectoryBlock.cs
- EventLogWatcher.cs
- AutoCompleteStringCollection.cs
- dbenumerator.cs
- PropertyDescriptorGridEntry.cs
- InvalidAsynchronousStateException.cs
- MessageSecurityVersion.cs
- PageParserFilter.cs
- PersonalizablePropertyEntry.cs
- DocumentViewerBaseAutomationPeer.cs
- Module.cs
- XamlFigureLengthSerializer.cs
- URIFormatException.cs
- Hashtable.cs
- TypeDescriptionProviderAttribute.cs
- ActivityMarkupSerializationProvider.cs
- ScriptResourceDefinition.cs
- AttachedPropertyDescriptor.cs
- DesignerActionListCollection.cs
- VectorAnimation.cs
- SelectionEditor.cs
- Query.cs
- NotifyParentPropertyAttribute.cs
- EntityDataSourceMemberPath.cs
- Registry.cs
- CurrencyWrapper.cs
- FormsIdentity.cs
- DataBindingHandlerAttribute.cs
- ExclusiveCanonicalizationTransform.cs
- StringReader.cs
- TextSimpleMarkerProperties.cs
- storepermission.cs
- DriveNotFoundException.cs
- SiteMapProvider.cs
- LogReservationCollection.cs
- FullTrustAssemblyCollection.cs
- Aes.cs
- Int32Storage.cs
- BitmapScalingModeValidation.cs
- ArithmeticException.cs
- PartManifestEntry.cs
- LabelInfo.cs
- EdgeModeValidation.cs
- Item.cs
- XmlSchemaImport.cs
- Type.cs
- PeerNearMe.cs
- ZipIOCentralDirectoryFileHeader.cs
- CellIdBoolean.cs
- HwndMouseInputProvider.cs
- Solver.cs
- NativeMethodsOther.cs
- ClientCultureInfo.cs
- TableCellAutomationPeer.cs
- EventArgs.cs
- UnmanagedMemoryStreamWrapper.cs
- altserialization.cs
- DelegateInArgument.cs
- CodeMemberProperty.cs
- HtmlTableRowCollection.cs
- DataError.cs
- HashCodeCombiner.cs
- BackStopAuthenticationModule.cs
- IIS7UserPrincipal.cs
- SetUserLanguageRequest.cs
- UpdatePanel.cs
- SqlDependencyListener.cs
- XmlAtomErrorReader.cs
- StateManagedCollection.cs