Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ResourceExpressionBuilder.cs
- HttpCacheParams.cs
- ProvidersHelper.cs
- HtmlGenericControl.cs
- GeometryGroup.cs
- GridViewRowEventArgs.cs
- SelectionRangeConverter.cs
- BoundPropertyEntry.cs
- DataGridViewCellLinkedList.cs
- TiffBitmapEncoder.cs
- LineSegment.cs
- SmtpSection.cs
- BuilderPropertyEntry.cs
- OleDbException.cs
- VerticalAlignConverter.cs
- AttributeXamlType.cs
- InputLanguageCollection.cs
- MailDefinition.cs
- XPathParser.cs
- Command.cs
- ResourceExpressionBuilder.cs
- LexicalChunk.cs
- AuthenticationConfig.cs
- DmlSqlGenerator.cs
- AutomationProperty.cs
- CodeAttributeDeclaration.cs
- OutputWindow.cs
- SecUtil.cs
- LogLogRecordHeader.cs
- GenericEnumConverter.cs
- EnumerableCollectionView.cs
- FieldMetadata.cs
- NamedPermissionSet.cs
- LayoutExceptionEventArgs.cs
- VisualTreeUtils.cs
- UpdateTranslator.cs
- SQLByte.cs
- SchemaTableOptionalColumn.cs
- XmlReaderSettings.cs
- NameTable.cs
- RelatedImageListAttribute.cs
- Point.cs
- StatusBar.cs
- ApplicationManager.cs
- ToRequest.cs
- CatalogZoneBase.cs
- NullableDoubleMinMaxAggregationOperator.cs
- CommonObjectSecurity.cs
- XmlReaderSettings.cs
- DependencyProperty.cs
- PerformanceCounterPermissionEntry.cs
- AppDomainAttributes.cs
- LongValidator.cs
- CompatibleIComparer.cs
- FileUtil.cs
- UInt16.cs
- SamlAttribute.cs
- ExpressionBinding.cs
- RtfFormatStack.cs
- oledbmetadatacolumnnames.cs
- FaultCode.cs
- TableLayoutSettingsTypeConverter.cs
- ListCommandEventArgs.cs
- XmlDocumentFieldSchema.cs
- EmbeddedMailObject.cs
- Argument.cs
- RuleValidation.cs
- DataGridViewTopRowAccessibleObject.cs
- DataGrid.cs
- CFStream.cs
- MemberBinding.cs
- TimersDescriptionAttribute.cs
- Formatter.cs
- AsymmetricKeyExchangeDeformatter.cs
- WindowsEditBoxRange.cs
- MenuEventArgs.cs
- Stopwatch.cs
- EnumerableRowCollectionExtensions.cs
- HtmlFormParameterReader.cs
- DataControlPagerLinkButton.cs
- D3DImage.cs
- XPathPatternParser.cs
- InvalidBodyAccessException.cs
- RuleSettingsCollection.cs
- TextFormatter.cs
- ConfigXmlElement.cs
- Identity.cs
- HttpProcessUtility.cs
- SolidBrush.cs
- HttpConfigurationSystem.cs
- WebPageTraceListener.cs
- ResourceDefaultValueAttribute.cs
- SafeLocalAllocation.cs
- TextTreeRootNode.cs
- DesignerListAdapter.cs
- FactoryGenerator.cs
- DateTime.cs
- RuntimeConfigurationRecord.cs
- DataControlFieldCell.cs
- InfoCardClaimCollection.cs