Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- SurrogateSelector.cs
- compensatingcollection.cs
- DocumentPropertiesDialog.cs
- DataGridViewCellLinkedList.cs
- UnionCodeGroup.cs
- ItemsChangedEventArgs.cs
- WebPartZoneDesigner.cs
- DataTableTypeConverter.cs
- XmlSerializerVersionAttribute.cs
- OptimizerPatterns.cs
- BeginCreateSecurityTokenRequest.cs
- CompilerInfo.cs
- DesignParameter.cs
- BoundField.cs
- ChildChangedEventArgs.cs
- PropertyPath.cs
- RowsCopiedEventArgs.cs
- Exception.cs
- SupportingTokenListenerFactory.cs
- EnumBuilder.cs
- SafeEventHandle.cs
- WindowsImpersonationContext.cs
- NameTable.cs
- _NetRes.cs
- ScalarRestriction.cs
- XmlIlVisitor.cs
- CompressedStack.cs
- StructuredCompositeActivityDesigner.cs
- TCEAdapterGenerator.cs
- GZipStream.cs
- FormViewInsertedEventArgs.cs
- EarlyBoundInfo.cs
- ImageMap.cs
- StorageEntityTypeMapping.cs
- XmlSchemaComplexContentRestriction.cs
- RuleRef.cs
- parserscommon.cs
- ZipIOModeEnforcingStream.cs
- ContainerUtilities.cs
- SqlDataReader.cs
- MultipartContentParser.cs
- GridViewDeletedEventArgs.cs
- WindowsFormsSynchronizationContext.cs
- _TransmitFileOverlappedAsyncResult.cs
- ListView.cs
- MimeObjectFactory.cs
- COMException.cs
- HttpValueCollection.cs
- NTAccount.cs
- URLString.cs
- OutputCacheProfileCollection.cs
- MatrixTransform.cs
- SystemPens.cs
- UrlPath.cs
- LinkedList.cs
- BufferBuilder.cs
- DataView.cs
- DiffuseMaterial.cs
- TransactionFlowOption.cs
- CompilerScope.cs
- FormsAuthentication.cs
- CompiledAction.cs
- MsmqSecureHashAlgorithm.cs
- UnsafeNativeMethodsPenimc.cs
- ConfigurationManagerHelperFactory.cs
- ConcurrencyBehavior.cs
- UTF7Encoding.cs
- CodeMethodMap.cs
- RemoveStoryboard.cs
- MonthChangedEventArgs.cs
- DBCommand.cs
- DPTypeDescriptorContext.cs
- FileLogRecordEnumerator.cs
- TransformerConfigurationWizardBase.cs
- FileEnumerator.cs
- MetadataUtilsSmi.cs
- ObservableDictionary.cs
- LayoutUtils.cs
- PageTheme.cs
- Vector3DConverter.cs
- ProviderException.cs
- DataBindingsDialog.cs
- BlurBitmapEffect.cs
- TextBoxAutomationPeer.cs
- IgnorePropertiesAttribute.cs
- FormViewUpdateEventArgs.cs
- ResolveCriteriaCD1.cs
- XamlTreeBuilderBamlRecordWriter.cs
- HttpWriter.cs
- NotifyIcon.cs
- MessageBox.cs
- AspCompat.cs
- LineInfo.cs
- WebConfigurationHost.cs
- MemberExpression.cs
- TableLayoutColumnStyleCollection.cs
- DataGridViewCellFormattingEventArgs.cs
- MailHeaderInfo.cs
- CallTemplateAction.cs
- CheckoutException.cs