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
- RightsController.cs
- ActivityDesigner.cs
- RawUIStateInputReport.cs
- JsonReader.cs
- XmlIncludeAttribute.cs
- ServiceContractGenerator.cs
- StylusShape.cs
- ZipIOBlockManager.cs
- XhtmlBasicValidationSummaryAdapter.cs
- TextModifierScope.cs
- _ConnectionGroup.cs
- designeractionbehavior.cs
- GridViewRowPresenter.cs
- StructuredTypeInfo.cs
- AttachmentCollection.cs
- UserPreferenceChangedEventArgs.cs
- TemplateBuilder.cs
- StyleCollectionEditor.cs
- BamlLocalizationDictionary.cs
- MessageEnumerator.cs
- DateTimeConstantAttribute.cs
- EmissiveMaterial.cs
- SqlReferenceCollection.cs
- DataContractJsonSerializerOperationBehavior.cs
- SettingsPropertyCollection.cs
- ActionMessageFilterTable.cs
- MatrixTransform.cs
- ExecutionProperties.cs
- SafeNativeMethods.cs
- StreamResourceInfo.cs
- ChtmlCommandAdapter.cs
- ClipboardData.cs
- AuthorizationRule.cs
- XamlStream.cs
- PeerNameRecordCollection.cs
- DbParameterHelper.cs
- HeaderUtility.cs
- FontUnit.cs
- Int64Animation.cs
- FillRuleValidation.cs
- SqlCacheDependencySection.cs
- storagemappingitemcollection.viewdictionary.cs
- CharUnicodeInfo.cs
- MenuCommandService.cs
- PerformanceCounterPermission.cs
- _TLSstream.cs
- ThreadStartException.cs
- DbDeleteCommandTree.cs
- ItemAutomationPeer.cs
- SourceFileInfo.cs
- MethodAccessException.cs
- Compress.cs
- ObjectQuery.cs
- CustomValidator.cs
- XmlDeclaration.cs
- RegisteredExpandoAttribute.cs
- ConfigXmlComment.cs
- MouseGesture.cs
- DefaultProfileManager.cs
- TagNameToTypeMapper.cs
- Model3D.cs
- ObjectHandle.cs
- MulticastIPAddressInformationCollection.cs
- XmlILTrace.cs
- CollectionView.cs
- NumberAction.cs
- _ChunkParse.cs
- AuthenticateEventArgs.cs
- CustomTrackingRecord.cs
- MailWebEventProvider.cs
- RequiredFieldValidator.cs
- OperandQuery.cs
- ScriptingSectionGroup.cs
- TabItemAutomationPeer.cs
- TableLayoutSettingsTypeConverter.cs
- StylusPoint.cs
- PropertyNames.cs
- AxisAngleRotation3D.cs
- newitemfactory.cs
- UriTemplateVariableQueryValue.cs
- DetailsViewDeletedEventArgs.cs
- DataReaderContainer.cs
- StandardBindingElement.cs
- TextBoxRenderer.cs
- HtmlInputFile.cs
- AddToCollection.cs
- VirtualizingStackPanel.cs
- HTMLTagNameToTypeMapper.cs
- RemotingConfiguration.cs
- FormViewInsertedEventArgs.cs
- AdministrationHelpers.cs
- XmlSchemaComplexContentExtension.cs
- WebPartManager.cs
- TypeLoadException.cs
- IPEndPoint.cs
- RegexMatchCollection.cs
- InputLangChangeEvent.cs
- InputReportEventArgs.cs
- FilterException.cs
- GeometryDrawing.cs