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
- IgnoreSectionHandler.cs
- Point3DCollectionValueSerializer.cs
- FixedSOMPage.cs
- WebPartDisplayMode.cs
- QilInvokeEarlyBound.cs
- Module.cs
- ErrorWrapper.cs
- Accessible.cs
- HtmlInputRadioButton.cs
- SqlDataSourceDesigner.cs
- QuaternionAnimationBase.cs
- LogSwitch.cs
- AvTraceDetails.cs
- ResourceKey.cs
- DetectEofStream.cs
- ContentWrapperAttribute.cs
- GeometryCombineModeValidation.cs
- TabletDeviceInfo.cs
- InheritedPropertyDescriptor.cs
- XamlFigureLengthSerializer.cs
- CqlGenerator.cs
- UndirectedGraph.cs
- DesignerForm.cs
- DeploymentExceptionMapper.cs
- InfoCardAsymmetricCrypto.cs
- AppDomainAttributes.cs
- Win32.cs
- SqlConnectionManager.cs
- XmlAttribute.cs
- ToolboxItemFilterAttribute.cs
- ConfigurationManagerInternalFactory.cs
- SmiXetterAccessMap.cs
- ValueUtilsSmi.cs
- CodeDOMProvider.cs
- IfAction.cs
- BitmapEffectRenderDataResource.cs
- IfJoinedCondition.cs
- relpropertyhelper.cs
- HttpException.cs
- List.cs
- RefreshEventArgs.cs
- ApplicationServicesHostFactory.cs
- SQLInt64Storage.cs
- StatusBarPanelClickEvent.cs
- ChangeBlockUndoRecord.cs
- StrokeSerializer.cs
- SapiRecoContext.cs
- HashLookup.cs
- Pen.cs
- ButtonColumn.cs
- XmlSchemaSearchPattern.cs
- SafeFileMapViewHandle.cs
- ColorPalette.cs
- WCFModelStrings.Designer.cs
- httpserverutility.cs
- FigureHelper.cs
- CodeTypeConstructor.cs
- DocumentReferenceCollection.cs
- CancelEventArgs.cs
- SoapAttributeOverrides.cs
- StylusPointCollection.cs
- MeasureData.cs
- DataGridCaption.cs
- NamedObject.cs
- SkinBuilder.cs
- NestedContainer.cs
- TemplatedMailWebEventProvider.cs
- GPStream.cs
- SignatureToken.cs
- XhtmlBasicObjectListAdapter.cs
- ComPlusAuthorization.cs
- OdbcRowUpdatingEvent.cs
- SqlBuffer.cs
- SymbolType.cs
- Int32CollectionConverter.cs
- StateWorkerRequest.cs
- SerializerWriterEventHandlers.cs
- GridViewRowPresenterBase.cs
- SQLMembershipProvider.cs
- log.cs
- LicenseException.cs
- HtmlTernaryTree.cs
- Timeline.cs
- ResourceReferenceKeyNotFoundException.cs
- SqlParameterizer.cs
- OdbcUtils.cs
- PassportAuthenticationEventArgs.cs
- ACL.cs
- DataColumnChangeEvent.cs
- DataObject.cs
- Duration.cs
- XmlReflectionMember.cs
- DecoderReplacementFallback.cs
- DataGridItem.cs
- NamedPermissionSet.cs
- TreeNodeClickEventArgs.cs
- Pair.cs
- Mutex.cs
- SiteMapNode.cs
- Header.cs