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
- CustomErrorCollection.cs
- KeyboardNavigation.cs
- KeyValueConfigurationElement.cs
- ArrangedElement.cs
- RawMouseInputReport.cs
- ProfileParameter.cs
- HttpResponseInternalBase.cs
- ProcessHostMapPath.cs
- ResponseBodyWriter.cs
- TextModifier.cs
- TextParagraphCache.cs
- GiveFeedbackEventArgs.cs
- LostFocusEventManager.cs
- TranslateTransform.cs
- ListQueryResults.cs
- DoubleAnimationUsingPath.cs
- XmlImplementation.cs
- PagesSection.cs
- HttpResponseWrapper.cs
- dataobject.cs
- TextTreeTextElementNode.cs
- TargetControlTypeAttribute.cs
- Dispatcher.cs
- ToolStripButton.cs
- SecurityTokenInclusionMode.cs
- ToolStripDropDownClosingEventArgs.cs
- DataSourceProvider.cs
- TokenFactoryCredential.cs
- XmlWrappingWriter.cs
- TemplateField.cs
- __ComObject.cs
- WmlControlAdapter.cs
- sqlmetadatafactory.cs
- CodeComment.cs
- CodeTypeReference.cs
- BookmarkScopeHandle.cs
- PenCursorManager.cs
- RequestCachePolicy.cs
- SurrogateChar.cs
- Grid.cs
- PathSegmentCollection.cs
- SqlDataSourceStatusEventArgs.cs
- HeaderedItemsControl.cs
- HttpWriter.cs
- Range.cs
- RouteParser.cs
- UInt16.cs
- SoapAttributes.cs
- Label.cs
- ToolBarButtonDesigner.cs
- FtpWebRequest.cs
- NameValueConfigurationCollection.cs
- ConditionCollection.cs
- SafeNativeMethods.cs
- GroupBoxDesigner.cs
- ToolStripSeparatorRenderEventArgs.cs
- Size3D.cs
- SplineKeyFrames.cs
- UserPreferenceChangedEventArgs.cs
- ReturnEventArgs.cs
- SystemKeyConverter.cs
- CodeExporter.cs
- validationstate.cs
- CategoryNameCollection.cs
- UndoEngine.cs
- SqlDataSourceSelectingEventArgs.cs
- Transform.cs
- XmlSchemaIdentityConstraint.cs
- MailAddress.cs
- SemanticAnalyzer.cs
- SafeFileMappingHandle.cs
- __ConsoleStream.cs
- EventWaitHandle.cs
- ISFTagAndGuidCache.cs
- EncryptedPackageFilter.cs
- ListBase.cs
- DesignerTransactionCloseEvent.cs
- DetailsViewInsertEventArgs.cs
- ScriptResourceHandler.cs
- Encoder.cs
- MediaPlayerState.cs
- PropertyCollection.cs
- TdsParserStaticMethods.cs
- PrintPreviewDialog.cs
- InvokeWebServiceDesigner.cs
- InkCanvasAutomationPeer.cs
- ClientType.cs
- TraceContextRecord.cs
- DataControlImageButton.cs
- ObjectParameter.cs
- PropertyGrid.cs
- EndpointInstanceProvider.cs
- nulltextcontainer.cs
- HttpPostProtocolReflector.cs
- ArraySegment.cs
- SequenceFullException.cs
- AssemblySettingAttributes.cs
- SHA1Managed.cs
- WebPartsPersonalizationAuthorization.cs
- SQLGuid.cs