Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorBlend.cs / 1 / ColorBlend.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- /*************************************************************************\ * * Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved. * * Module Name: * * ColorBlend.cs * * Abstract: * * Native GDI+ Color Blend structure. * * Revision History: * * 9/22/1999 [....] * Created it. * \**************************************************************************/ 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AssemblyHash.cs
- SchemaReference.cs
- WebPartsPersonalization.cs
- DiscoveryDocumentLinksPattern.cs
- Int32RectValueSerializer.cs
- MarshalByRefObject.cs
- MenuItemStyleCollection.cs
- ModelUIElement3D.cs
- NavigatingCancelEventArgs.cs
- ZipPackagePart.cs
- UInt16.cs
- GestureRecognitionResult.cs
- DataGridViewCellLinkedList.cs
- OperatingSystem.cs
- HashRepartitionEnumerator.cs
- VsPropertyGrid.cs
- SourceChangedEventArgs.cs
- BaseComponentEditor.cs
- DbDataRecord.cs
- PictureBox.cs
- SqlFacetAttribute.cs
- Vector3D.cs
- TreeViewImageKeyConverter.cs
- OracleCommandBuilder.cs
- ElementMarkupObject.cs
- PropertyDescriptor.cs
- TypeSystem.cs
- ProjectionPathSegment.cs
- LocatorBase.cs
- DataGridView.cs
- CharacterShapingProperties.cs
- PrivilegeNotHeldException.cs
- NavigationProperty.cs
- SubqueryRules.cs
- FunctionImportMapping.cs
- FillErrorEventArgs.cs
- COM2IProvidePropertyBuilderHandler.cs
- AsyncCompletedEventArgs.cs
- OdbcInfoMessageEvent.cs
- mansign.cs
- TrackingMemoryStreamFactory.cs
- XamlVector3DCollectionSerializer.cs
- xsdvalidator.cs
- PeerUnsafeNativeCryptMethods.cs
- ServiceMetadataContractBehavior.cs
- Thread.cs
- SqlCommandSet.cs
- XmlObjectSerializer.cs
- ADMembershipUser.cs
- DoubleAnimationBase.cs
- PolyQuadraticBezierSegment.cs
- FactoryId.cs
- XMLSyntaxException.cs
- CharacterMetrics.cs
- CrossAppDomainChannel.cs
- DispatcherExceptionFilterEventArgs.cs
- dataprotectionpermission.cs
- HwndAppCommandInputProvider.cs
- EmbeddedMailObject.cs
- AdjustableArrowCap.cs
- SizeAnimationUsingKeyFrames.cs
- Point.cs
- OrderPreservingSpoolingTask.cs
- SingleStorage.cs
- Graph.cs
- AnnotationResourceChangedEventArgs.cs
- hwndwrapper.cs
- OrderPreservingPipeliningMergeHelper.cs
- ImageIndexConverter.cs
- ProvideValueServiceProvider.cs
- InkCanvasAutomationPeer.cs
- CopyNodeSetAction.cs
- EventPrivateKey.cs
- HttpValueCollection.cs
- DataGridViewCellStyleEditor.cs
- SimpleBitVector32.cs
- DefaultTextStoreTextComposition.cs
- CoreSwitches.cs
- AsyncResult.cs
- versioninfo.cs
- InnerItemCollectionView.cs
- Util.cs
- MarkerProperties.cs
- WebContext.cs
- ListControlBoundActionList.cs
- __TransparentProxy.cs
- FloaterParaClient.cs
- HttpRequest.cs
- ConfigurationManagerInternal.cs
- BaseTemplateBuildProvider.cs
- QilStrConcatenator.cs
- CodeValidator.cs
- RelationHandler.cs
- EventArgs.cs
- RegionData.cs
- UrlPath.cs
- ExtendedProtectionPolicyElement.cs
- CompositeActivityValidator.cs
- XmlQueryContext.cs
- DataGridPagerStyle.cs