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
- BoolExpression.cs
- Compilation.cs
- DataServiceClientException.cs
- HandledMouseEvent.cs
- VisualBasicImportReference.cs
- ScriptResourceAttribute.cs
- DataGridViewCellStyleConverter.cs
- TraceRecord.cs
- EdmScalarPropertyAttribute.cs
- HandlerBase.cs
- WindowsFormsHelpers.cs
- SchemaNames.cs
- ModelMemberCollection.cs
- SecurityUniqueId.cs
- IApplicationTrustManager.cs
- ToolStripButton.cs
- HtmlControlPersistable.cs
- OpenTypeLayoutCache.cs
- RegexCapture.cs
- OdbcError.cs
- Attributes.cs
- SetUserPreferenceRequest.cs
- SymmetricKey.cs
- ObjectTokenCategory.cs
- securitycriticaldata.cs
- tibetanshape.cs
- State.cs
- ToolBarButtonClickEvent.cs
- GenericRootAutomationPeer.cs
- InfoCardArgumentException.cs
- Region.cs
- HandleValueEditor.cs
- ErrorEventArgs.cs
- TypedTableGenerator.cs
- MetadataWorkspace.cs
- PartitionerQueryOperator.cs
- CompiledXpathExpr.cs
- CodeSpit.cs
- Rfc2898DeriveBytes.cs
- EventManager.cs
- MediaContext.cs
- SafeThreadHandle.cs
- FloatUtil.cs
- LayoutTable.cs
- ReadOnlyKeyedCollection.cs
- XmlIgnoreAttribute.cs
- SelectingProviderEventArgs.cs
- ScopelessEnumAttribute.cs
- KeyToListMap.cs
- MenuStrip.cs
- Stack.cs
- ManagedIStream.cs
- TaskFactory.cs
- FormatControl.cs
- ItemAutomationPeer.cs
- TokenizerHelper.cs
- RequiredAttributeAttribute.cs
- StylusPointPropertyInfo.cs
- CounterCreationDataConverter.cs
- TemplateXamlParser.cs
- NumericPagerField.cs
- TraceHandler.cs
- MultiTrigger.cs
- Stackframe.cs
- QuadraticEase.cs
- WebPartUserCapability.cs
- BindingParameterCollection.cs
- ObservableCollection.cs
- SelectorItemAutomationPeer.cs
- HtmlShim.cs
- EtwTrace.cs
- ProfileSettings.cs
- EmptyControlCollection.cs
- PieceNameHelper.cs
- SmtpClient.cs
- QEncodedStream.cs
- ValidateNames.cs
- SafeNativeMethods.cs
- RowUpdatedEventArgs.cs
- DelegatingTypeDescriptionProvider.cs
- PropertyEmitter.cs
- ConcurrentStack.cs
- EdmFunctionAttribute.cs
- MarkupObject.cs
- PropVariant.cs
- InstallerTypeAttribute.cs
- StringPropertyBuilder.cs
- AsyncContentLoadedEventArgs.cs
- COM2Properties.cs
- XPathChildIterator.cs
- InstalledFontCollection.cs
- WebAdminConfigurationHelper.cs
- AutoGeneratedField.cs
- PipeException.cs
- InheritanceAttribute.cs
- SQLRoleProvider.cs
- ServiceSecurityAuditBehavior.cs
- HttpCachePolicyBase.cs
- EntityDesignPluralizationHandler.cs
- MappingException.cs