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
- RoleBoolean.cs
- TypedTableBaseExtensions.cs
- ObjectReferenceStack.cs
- EventRecord.cs
- Knowncolors.cs
- SerializationFieldInfo.cs
- ConstructorNeedsTagAttribute.cs
- RemoteWebConfigurationHost.cs
- ValidationRule.cs
- PermissionAttributes.cs
- SqlBinder.cs
- CompiledELinqQueryState.cs
- TypeInformation.cs
- TokenBasedSet.cs
- Instrumentation.cs
- DataGridViewSelectedCellCollection.cs
- SettingsProviderCollection.cs
- _SslState.cs
- PerfService.cs
- GridView.cs
- LineUtil.cs
- Assert.cs
- ServiceAppDomainAssociationProvider.cs
- SmtpFailedRecipientsException.cs
- HandleDictionary.cs
- CompositeKey.cs
- GetCardDetailsRequest.cs
- NetworkInformationException.cs
- ResourceExpressionBuilder.cs
- HttpProfileBase.cs
- TextEffect.cs
- DiscoveryExceptionDictionary.cs
- TransformProviderWrapper.cs
- TableCellAutomationPeer.cs
- CompositeClientFormatter.cs
- ProxyWebPartManager.cs
- OneWayChannelListener.cs
- TemplateBuilder.cs
- ContextMenu.cs
- SecurityUtils.cs
- BitmapEffectGroup.cs
- LeafCellTreeNode.cs
- safemediahandle.cs
- PopupEventArgs.cs
- CompilerState.cs
- ToolStripDropDownClosingEventArgs.cs
- ScrollChrome.cs
- EncodingNLS.cs
- TextTreeTextNode.cs
- DuplicateMessageDetector.cs
- MouseEventArgs.cs
- HorizontalAlignConverter.cs
- SoapCommonClasses.cs
- ScalarType.cs
- JsonFormatWriterGenerator.cs
- CategoryNameCollection.cs
- SQLResource.cs
- ComplexObject.cs
- MemberDescriptor.cs
- LoginNameDesigner.cs
- CalendarData.cs
- ToolStripDropDownClosedEventArgs.cs
- SemanticValue.cs
- XmlNodeReader.cs
- OdbcConnectionFactory.cs
- UIElement.cs
- CommonXSendMessage.cs
- SchemaImporter.cs
- IdentitySection.cs
- FtpRequestCacheValidator.cs
- Odbc32.cs
- StrokeNodeData.cs
- XmlExceptionHelper.cs
- FunctionImportMapping.ReturnTypeRenameMapping.cs
- AnimatedTypeHelpers.cs
- PersonalizationStateInfo.cs
- WindowsListViewGroupHelper.cs
- ClientConvert.cs
- PrintingPermission.cs
- ListenerSessionConnectionReader.cs
- Typography.cs
- ComEventsInfo.cs
- WindowsGrip.cs
- SystemDiagnosticsSection.cs
- WebPartEditorOkVerb.cs
- TriggerAction.cs
- BezierSegment.cs
- DoubleConverter.cs
- RootBrowserWindowAutomationPeer.cs
- DefaultValidator.cs
- SafeFileMapViewHandle.cs
- Documentation.cs
- DeclarationUpdate.cs
- ObjectCloneHelper.cs
- StructuredCompositeActivityDesigner.cs
- GridView.cs
- FreezableDefaultValueFactory.cs
- TabControl.cs
- CatalogPartDesigner.cs
- TimeoutConverter.cs