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
- NamespaceCollection.cs
- SqlProvider.cs
- SystemFonts.cs
- IndexOutOfRangeException.cs
- FixedLineResult.cs
- shaperfactoryquerycacheentry.cs
- StrokeNode.cs
- RelationshipEnd.cs
- TypeConverterBase.cs
- OrderedDictionary.cs
- WinEventQueueItem.cs
- Query.cs
- CodeAccessPermission.cs
- SapiRecoContext.cs
- InstanceData.cs
- CounterSampleCalculator.cs
- XamlClipboardData.cs
- CodeGroup.cs
- Task.cs
- TypeDescriptionProvider.cs
- PseudoWebRequest.cs
- DragDrop.cs
- WrappedIUnknown.cs
- Border.cs
- QualifierSet.cs
- ContentValidator.cs
- ImageCodecInfo.cs
- TextTreeText.cs
- DataGridViewCellFormattingEventArgs.cs
- MaterialCollection.cs
- StateWorkerRequest.cs
- WSHttpBindingBaseElement.cs
- PreviewPrintController.cs
- _Win32.cs
- TreePrinter.cs
- DynamicMetaObject.cs
- CorrelationResolver.cs
- XmlUnspecifiedAttribute.cs
- ThumbAutomationPeer.cs
- CodeCompiler.cs
- SelectionEditingBehavior.cs
- KeyConverter.cs
- EmptyEnumerator.cs
- SecurityVerifiedMessage.cs
- SqlServices.cs
- PanningMessageFilter.cs
- MissingFieldException.cs
- FontStyleConverter.cs
- CriticalHandle.cs
- IdentifierService.cs
- Delegate.cs
- ThemeConfigurationDialog.cs
- SecurityManager.cs
- WebProxyScriptElement.cs
- EndPoint.cs
- DataSetMappper.cs
- RIPEMD160.cs
- VerificationAttribute.cs
- Page.cs
- ScriptRegistrationManager.cs
- OutgoingWebResponseContext.cs
- HttpWebRequestElement.cs
- COM2ComponentEditor.cs
- ContentPresenter.cs
- MetafileHeaderWmf.cs
- Matrix3DStack.cs
- TemplatePartAttribute.cs
- OleDbConnectionInternal.cs
- CursorConverter.cs
- IOThreadScheduler.cs
- ClearTypeHintValidation.cs
- RoleBoolean.cs
- PrintDocument.cs
- SafeRightsManagementQueryHandle.cs
- PolyLineSegment.cs
- ReadOnlyPropertyMetadata.cs
- AccessedThroughPropertyAttribute.cs
- Misc.cs
- TreeViewHitTestInfo.cs
- EmptyEnumerable.cs
- ApplicationSecurityInfo.cs
- ProcessModuleCollection.cs
- ProcessInfo.cs
- TableItemProviderWrapper.cs
- DataBindingValueUIHandler.cs
- PageRanges.cs
- DataTableReaderListener.cs
- WithParamAction.cs
- ScrollPattern.cs
- CheckBoxAutomationPeer.cs
- CacheRequest.cs
- TypedElement.cs
- DelegateTypeInfo.cs
- QilGeneratorEnv.cs
- TemplateNameScope.cs
- DropTarget.cs
- ProofTokenCryptoHandle.cs
- ValidateNames.cs
- SQLInt32.cs
- BaseInfoTable.cs