Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- CodeTypeReferenceCollection.cs
- ScalarConstant.cs
- VisualStateManager.cs
- KeyValueInternalCollection.cs
- WinEventHandler.cs
- LazyLoadBehavior.cs
- ProviderIncompatibleException.cs
- ScaleTransform3D.cs
- FileDialog_Vista.cs
- MouseOverProperty.cs
- MergablePropertyAttribute.cs
- ToolBarButtonClickEvent.cs
- AdornedElementPlaceholder.cs
- AppSettingsReader.cs
- ConnectivityStatus.cs
- ColumnResizeAdorner.cs
- SiteMap.cs
- FixedPosition.cs
- ScriptResourceHandler.cs
- CacheChildrenQuery.cs
- MenuItemBinding.cs
- SafeCryptHandles.cs
- ReplacementText.cs
- RequestCachePolicy.cs
- ReachFixedPageSerializer.cs
- QueryAccessibilityHelpEvent.cs
- Frame.cs
- SymmetricKeyWrap.cs
- TypeElement.cs
- CheckBoxList.cs
- LongValidatorAttribute.cs
- IPEndPoint.cs
- newitemfactory.cs
- ListSortDescriptionCollection.cs
- ShutDownListener.cs
- ScriptReferenceEventArgs.cs
- TrustManager.cs
- StringFreezingAttribute.cs
- StylusCaptureWithinProperty.cs
- TableLayoutCellPaintEventArgs.cs
- BitmapEffectDrawingContextState.cs
- Int32RectValueSerializer.cs
- PointLightBase.cs
- TableColumn.cs
- EdmRelationshipRoleAttribute.cs
- AddInServer.cs
- HyperLinkField.cs
- SupportingTokenListenerFactory.cs
- WebPartConnectionsDisconnectVerb.cs
- StylusShape.cs
- SqlClientWrapperSmiStreamChars.cs
- LinqDataSourceDisposeEventArgs.cs
- FileDialogPermission.cs
- NameValueFileSectionHandler.cs
- SectionVisual.cs
- PathData.cs
- IdentifierCollection.cs
- PropertyInfoSet.cs
- ConsumerConnectionPoint.cs
- LinqDataSource.cs
- RtfToken.cs
- DynamicPropertyHolder.cs
- XmlSchemas.cs
- BaseUriHelper.cs
- DataSetMappper.cs
- DotAtomReader.cs
- SafeNativeMethods.cs
- Path.cs
- BridgeDataRecord.cs
- ToolZone.cs
- CollectionBase.cs
- ImageIndexEditor.cs
- OperandQuery.cs
- SimpleWebHandlerParser.cs
- SettingsSavedEventArgs.cs
- MobileControlBuilder.cs
- Point.cs
- ColorInterpolationModeValidation.cs
- LocatorManager.cs
- ContractComponent.cs
- ClockGroup.cs
- XmlUtil.cs
- XmlIncludeAttribute.cs
- Brushes.cs
- ImageMetadata.cs
- dsa.cs
- CoTaskMemSafeHandle.cs
- TreeNode.cs
- WarningException.cs
- GridViewRow.cs
- WeakReference.cs
- GeneralTransform2DTo3D.cs
- PublisherIdentityPermission.cs
- TimeoutValidationAttribute.cs
- Opcode.cs
- BitmapDecoder.cs
- WrappedKeySecurityTokenParameters.cs
- HtmlFormParameterReader.cs
- PathFigure.cs
- DesignerMetadata.cs