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
- SystemIPGlobalStatistics.cs
- LinearQuaternionKeyFrame.cs
- ISAPIWorkerRequest.cs
- Viewport3DVisual.cs
- BevelBitmapEffect.cs
- DeleteBookmarkScope.cs
- DirtyTextRange.cs
- WrappedReader.cs
- Int32KeyFrameCollection.cs
- BrushValueSerializer.cs
- DataGridViewRowStateChangedEventArgs.cs
- MatrixValueSerializer.cs
- RepeaterCommandEventArgs.cs
- Pair.cs
- DisableDpiAwarenessAttribute.cs
- ProcessHost.cs
- SystemIPAddressInformation.cs
- CodeLinePragma.cs
- ResourceDictionaryCollection.cs
- ConnectionPointCookie.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- METAHEADER.cs
- InvalidAsynchronousStateException.cs
- ColumnWidthChangingEvent.cs
- SqlTriggerContext.cs
- Canvas.cs
- XmlBoundElement.cs
- BadImageFormatException.cs
- versioninfo.cs
- UIPropertyMetadata.cs
- MasterPageCodeDomTreeGenerator.cs
- XmlSequenceWriter.cs
- ResXFileRef.cs
- DrawTreeNodeEventArgs.cs
- HwndSourceKeyboardInputSite.cs
- StickyNoteContentControl.cs
- KnownTypes.cs
- __FastResourceComparer.cs
- PrintDialog.cs
- AnimatedTypeHelpers.cs
- ColorInterpolationModeValidation.cs
- InertiaRotationBehavior.cs
- TrackingMemoryStreamFactory.cs
- XmlAnyElementAttributes.cs
- LeftCellWrapper.cs
- DataGridViewTopLeftHeaderCell.cs
- XmlExpressionDumper.cs
- MultiTrigger.cs
- DummyDataSource.cs
- NotSupportedException.cs
- SortableBindingList.cs
- Propagator.cs
- BlurBitmapEffect.cs
- StateDesigner.Helpers.cs
- StylusButton.cs
- XmlHierarchicalDataSourceView.cs
- dbenumerator.cs
- NumericUpDownAcceleration.cs
- FilterException.cs
- CorrelationValidator.cs
- RectangleHotSpot.cs
- PageFunction.cs
- UshortList2.cs
- ConstructorNeedsTagAttribute.cs
- HtmlMeta.cs
- IEnumerable.cs
- EncodingNLS.cs
- XmlBinaryReader.cs
- BindingEntityInfo.cs
- brushes.cs
- BrowserCapabilitiesFactoryBase.cs
- BitmapFrameDecode.cs
- ScriptingAuthenticationServiceSection.cs
- PeerMessageDispatcher.cs
- ContainerAction.cs
- TdsValueSetter.cs
- XmlAnyAttributeAttribute.cs
- CompiledELinqQueryState.cs
- Floater.cs
- XmlMembersMapping.cs
- ModelEditingScope.cs
- Compensate.cs
- BinaryFormatter.cs
- ManagementException.cs
- COMException.cs
- XmlReflectionMember.cs
- DefaultBinder.cs
- selecteditemcollection.cs
- PrintPreviewControl.cs
- SmiEventSink.cs
- HtmlTitle.cs
- WaitHandle.cs
- DispatcherExceptionFilterEventArgs.cs
- OutputCacheProviderCollection.cs
- RegularExpressionValidator.cs
- Pair.cs
- FormViewModeEventArgs.cs
- HwndSource.cs
- CipherData.cs
- UntypedNullExpression.cs