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
- columnmapkeybuilder.cs
- InheritedPropertyDescriptor.cs
- EntitySetBase.cs
- EventLogTraceListener.cs
- BitmapSizeOptions.cs
- ClientSettings.cs
- LabelLiteral.cs
- DataListCommandEventArgs.cs
- EventLogTraceListener.cs
- HasCopySemanticsAttribute.cs
- PostBackTrigger.cs
- Helper.cs
- sqlser.cs
- ArcSegment.cs
- MultiView.cs
- JsonEnumDataContract.cs
- ExtensionQuery.cs
- SubstitutionList.cs
- ImageMapEventArgs.cs
- TaskScheduler.cs
- Rect3D.cs
- Helper.cs
- ColumnMapProcessor.cs
- ApplicationActivator.cs
- IPPacketInformation.cs
- GPPOINT.cs
- InstancePersistenceException.cs
- JavaScriptSerializer.cs
- GeneralTransformGroup.cs
- Token.cs
- SrgsOneOf.cs
- SplitterCancelEvent.cs
- WorkflowRuntimeElement.cs
- PreloadedPackages.cs
- WebBrowserDesigner.cs
- DataGridViewImageCell.cs
- ComboBoxAutomationPeer.cs
- HtmlMeta.cs
- SelectQueryOperator.cs
- GroupBox.cs
- RegistryConfigurationProvider.cs
- HostProtectionException.cs
- Attribute.cs
- ArglessEventHandlerProxy.cs
- EventArgs.cs
- DateTime.cs
- XmlConvert.cs
- Pen.cs
- MailDefinitionBodyFileNameEditor.cs
- DiscoveryClientDocuments.cs
- LayeredChannelListener.cs
- Registry.cs
- XmlSchemaAny.cs
- ObjectSecurity.cs
- ErrorFormatterPage.cs
- DataControlFieldCell.cs
- NavigationCommands.cs
- CodeGeneratorOptions.cs
- ScriptResourceDefinition.cs
- CultureMapper.cs
- EffectiveValueEntry.cs
- SystemKeyConverter.cs
- SqlConnectionString.cs
- ServiceOperationViewControl.cs
- NavigationPropertyEmitter.cs
- WebColorConverter.cs
- GenerateTemporaryTargetAssembly.cs
- DSASignatureFormatter.cs
- __ConsoleStream.cs
- XmlSchemaSimpleTypeRestriction.cs
- XmlRootAttribute.cs
- StreamInfo.cs
- TypeTypeConverter.cs
- LookupBindingPropertiesAttribute.cs
- TextRange.cs
- WindowsFormsEditorServiceHelper.cs
- HttpDictionary.cs
- RawMouseInputReport.cs
- selecteditemcollection.cs
- SmiXetterAccessMap.cs
- SqlFileStream.cs
- DiscriminatorMap.cs
- GeneralTransform.cs
- QilName.cs
- TextParentUndoUnit.cs
- MenuItemBinding.cs
- InternalPermissions.cs
- DataSourceExpressionCollection.cs
- IndicFontClient.cs
- SqlUtil.cs
- MenuItemStyleCollection.cs
- TextSpanModifier.cs
- DiscreteKeyFrames.cs
- ProcessManager.cs
- WebDescriptionAttribute.cs
- LassoSelectionBehavior.cs
- EmptyQuery.cs
- SerializationInfoEnumerator.cs
- RefreshEventArgs.cs
- InfoCardRSAPKCS1KeyExchangeFormatter.cs