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
- NavigationPropertySingletonExpression.cs
- DynamicQueryableWrapper.cs
- OrderedEnumerableRowCollection.cs
- MatrixUtil.cs
- FtpCachePolicyElement.cs
- AuthStoreRoleProvider.cs
- ConfigurationManagerHelper.cs
- ListControl.cs
- ClockGroup.cs
- XmlSchemaAttributeGroupRef.cs
- ControlPropertyNameConverter.cs
- ColorConvertedBitmap.cs
- CodeDomConfigurationHandler.cs
- GridLengthConverter.cs
- OleDbTransaction.cs
- MeasurementDCInfo.cs
- ArgumentNullException.cs
- DataBindingHandlerAttribute.cs
- FormatterServices.cs
- Logging.cs
- ProcessInputEventArgs.cs
- ViewStateModeByIdAttribute.cs
- PageFunction.cs
- ExternalFile.cs
- SerializationInfo.cs
- WS2007FederationHttpBindingCollectionElement.cs
- LinqToSqlWrapper.cs
- SeekStoryboard.cs
- InputDevice.cs
- KeyValueConfigurationElement.cs
- HttpModulesSection.cs
- WmlPhoneCallAdapter.cs
- ComboBoxDesigner.cs
- BCLDebug.cs
- ListItemsCollectionEditor.cs
- HitTestWithGeometryDrawingContextWalker.cs
- EventLog.cs
- CopyAttributesAction.cs
- SignatureConfirmationElement.cs
- ResourceDisplayNameAttribute.cs
- ECDiffieHellmanCngPublicKey.cs
- ElementHostAutomationPeer.cs
- DeclarativeCatalogPartDesigner.cs
- StreamGeometry.cs
- XPathNode.cs
- DefaultParameterValueAttribute.cs
- RuntimeVariablesExpression.cs
- Formatter.cs
- XmlDocument.cs
- DetailsViewUpdatedEventArgs.cs
- CreatingCookieEventArgs.cs
- FrameworkContentElementAutomationPeer.cs
- Function.cs
- TraceSection.cs
- AssociationSet.cs
- SafeEventHandle.cs
- BufferedGraphics.cs
- GridViewCancelEditEventArgs.cs
- HttpRuntime.cs
- TypeResolver.cs
- UrlAuthFailedErrorFormatter.cs
- XmlAttribute.cs
- ToolStripSplitStackLayout.cs
- LinqToSqlWrapper.cs
- BufferBuilder.cs
- PropertyDescriptorCollection.cs
- ObjectIDGenerator.cs
- RecordBuilder.cs
- ExternalFile.cs
- Function.cs
- DbgUtil.cs
- ByteStream.cs
- DataGridViewCell.cs
- TypeLoadException.cs
- StopStoryboard.cs
- MenuAutoFormat.cs
- AttributeAction.cs
- PolyBezierSegment.cs
- VisualBasicReference.cs
- WhitespaceSignificantCollectionAttribute.cs
- NameSpaceExtractor.cs
- IdleTimeoutMonitor.cs
- RTLAwareMessageBox.cs
- CompressedStack.cs
- HttpClientCertificate.cs
- ConditionBrowserDialog.cs
- StretchValidation.cs
- IItemProperties.cs
- TableSectionStyle.cs
- RepeaterItemEventArgs.cs
- DesignerInterfaces.cs
- Help.cs
- QualifiedCellIdBoolean.cs
- CultureInfo.cs
- ToolboxItem.cs
- Accessible.cs
- QualificationDataAttribute.cs
- DiagnosticsConfiguration.cs
- SurrogateSelector.cs
- QilVisitor.cs