Code:
/ DotNET / DotNET / 8.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
- _ConnectOverlappedAsyncResult.cs
- GraphicsPath.cs
- ValidatingCollection.cs
- Figure.cs
- DurableOperationAttribute.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- CodeSnippetStatement.cs
- ElementNotEnabledException.cs
- TagPrefixAttribute.cs
- PropertyStore.cs
- SQLBinary.cs
- Activity.cs
- SoapAttributeOverrides.cs
- CharEnumerator.cs
- WebPartTransformerCollection.cs
- recordstate.cs
- XmlSchemaGroup.cs
- ValidationSummary.cs
- ExpressionBinding.cs
- TabPanel.cs
- MediaSystem.cs
- VectorCollectionConverter.cs
- BitmapEffectGroup.cs
- MessageSecurityOverMsmqElement.cs
- TextEditorSelection.cs
- SoapServerMethod.cs
- WebAdminConfigurationHelper.cs
- EntityCommand.cs
- DataViewManagerListItemTypeDescriptor.cs
- PropertyChangeTracker.cs
- StateDesigner.cs
- TrustManager.cs
- EncoderReplacementFallback.cs
- LinkArea.cs
- MemberDomainMap.cs
- SafeRsaProviderHandle.cs
- RetrieveVirtualItemEventArgs.cs
- ExpressionBindingCollection.cs
- BitmapFrame.cs
- SpinLock.cs
- TreeNodeBinding.cs
- webclient.cs
- BinaryCommonClasses.cs
- DataGridTextBoxColumn.cs
- DataBindingCollection.cs
- ValuePattern.cs
- WMIGenerator.cs
- ValidationError.cs
- WebDisplayNameAttribute.cs
- CollectionBuilder.cs
- ErrorStyle.cs
- SqlNodeTypeOperators.cs
- GregorianCalendarHelper.cs
- ScrollViewerAutomationPeer.cs
- ITreeGenerator.cs
- Int32.cs
- VBIdentifierTrimConverter.cs
- SynchronizedInputPattern.cs
- Point3D.cs
- QuaternionAnimationBase.cs
- SQLBytesStorage.cs
- StrongTypingException.cs
- ThreadSafeList.cs
- Floater.cs
- FloatSumAggregationOperator.cs
- SqlBulkCopy.cs
- GenericRootAutomationPeer.cs
- SocketException.cs
- IndicFontClient.cs
- HtmlTextArea.cs
- ProfileEventArgs.cs
- XsltArgumentList.cs
- SafeRightsManagementEnvironmentHandle.cs
- Crc32.cs
- DesignerProperties.cs
- ContainerParagraph.cs
- ControlEvent.cs
- ModifyActivitiesPropertyDescriptor.cs
- SecurityAppliedMessage.cs
- XmlILStorageConverter.cs
- ISAPIRuntime.cs
- DataGridTemplateColumn.cs
- MappingMetadataHelper.cs
- _LocalDataStoreMgr.cs
- EntityDataSourceSelectingEventArgs.cs
- DbConnectionOptions.cs
- XamlSerializationHelper.cs
- PassportAuthenticationModule.cs
- SQLGuid.cs
- WorkflowItemPresenter.cs
- MailSettingsSection.cs
- Bezier.cs
- ArrangedElementCollection.cs
- KeyProperty.cs
- Query.cs
- WindowsContainer.cs
- PropertyGroupDescription.cs
- PrePrepareMethodAttribute.cs
- SequenceNumber.cs
- FindResponse.cs