Code:
/ DotNET / DotNET / 8.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorBlend.cs / 1 / ColorBlend.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /*************************************************************************\ * * Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved. * * Module Name: * * ColorBlend.cs * * Abstract: * * Native GDI+ Color Blend structure. * * Revision History: * * 9/22/1999 [....] * Created it. * \**************************************************************************/ 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DesignerDataRelationship.cs
- BufferModeSettings.cs
- ToolZone.cs
- SystemResourceHost.cs
- HttpModuleCollection.cs
- CompModSwitches.cs
- AncestorChangedEventArgs.cs
- ColorPalette.cs
- HttpCapabilitiesBase.cs
- ModuleBuilderData.cs
- SessionKeyExpiredException.cs
- LockCookie.cs
- ToolStripTextBox.cs
- ButtonFlatAdapter.cs
- UnsafeNativeMethods.cs
- Context.cs
- LostFocusEventManager.cs
- QilInvokeLateBound.cs
- XmlChildEnumerator.cs
- HttpListenerPrefixCollection.cs
- ToolboxBitmapAttribute.cs
- HttpFileCollectionBase.cs
- WebConfigurationHost.cs
- UnmanagedMarshal.cs
- TextServicesPropertyRanges.cs
- Rotation3DKeyFrameCollection.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- SubqueryRules.cs
- ServiceMoniker.cs
- PEFileEvidenceFactory.cs
- Stopwatch.cs
- ZipIOLocalFileDataDescriptor.cs
- WebPartManagerInternals.cs
- ShellProvider.cs
- FormViewPagerRow.cs
- NameValueSectionHandler.cs
- PageHandlerFactory.cs
- PermissionSetTriple.cs
- BooleanStorage.cs
- VSWCFServiceContractGenerator.cs
- ViewStateException.cs
- FileInfo.cs
- ProcessHostServerConfig.cs
- MsmqHostedTransportConfiguration.cs
- TypeDescriptorContext.cs
- TypeBrowserDialog.cs
- ControlParameter.cs
- StyleBamlTreeBuilder.cs
- BamlStream.cs
- TargetConverter.cs
- StringReader.cs
- RectangleGeometry.cs
- Select.cs
- AccessibleObject.cs
- Overlapped.cs
- OleDbErrorCollection.cs
- ReadOnlyDataSourceView.cs
- TextBreakpoint.cs
- SamlSubjectStatement.cs
- Cell.cs
- CommonGetThemePartSize.cs
- TextEditorCharacters.cs
- StringCollectionMarkupSerializer.cs
- XamlTreeBuilder.cs
- FragmentQueryKB.cs
- WindowsToolbarItemAsMenuItem.cs
- TargetConverter.cs
- DocumentPageTextView.cs
- QilUnary.cs
- HybridDictionary.cs
- CodeIdentifier.cs
- VirtualDirectoryMappingCollection.cs
- TransformerInfo.cs
- OptimalBreakSession.cs
- DataGridViewCellStateChangedEventArgs.cs
- SessionState.cs
- ColorAnimationBase.cs
- XmlNamespaceMappingCollection.cs
- RelatedImageListAttribute.cs
- CompilerTypeWithParams.cs
- ComboBoxAutomationPeer.cs
- Vector3DCollectionConverter.cs
- XmlSchemaAnnotation.cs
- TextCharacters.cs
- PolicyUtility.cs
- EnvironmentPermission.cs
- SourceFilter.cs
- LowerCaseStringConverter.cs
- DataBindEngine.cs
- XmlAttributeProperties.cs
- ToolStripRendererSwitcher.cs
- TableLayoutPanel.cs
- ComEventsMethod.cs
- XmlValidatingReader.cs
- ActivityPropertyReference.cs
- EventSetter.cs
- GridViewCellAutomationPeer.cs
- SoapHeaders.cs
- ImportContext.cs
- XmlEncoding.cs