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
- Encoder.cs
- ChtmlImageAdapter.cs
- AssemblyAssociatedContentFileAttribute.cs
- TraceSection.cs
- DataListItemCollection.cs
- OlePropertyStructs.cs
- _ServiceNameStore.cs
- FloaterParagraph.cs
- RequiredFieldValidator.cs
- MSG.cs
- DataGridViewRowStateChangedEventArgs.cs
- UrlAuthFailedErrorFormatter.cs
- HttpTransportElement.cs
- Deflater.cs
- Bits.cs
- XmlTypeAttribute.cs
- XDeferredAxisSource.cs
- StorageAssociationSetMapping.cs
- MatrixAnimationUsingKeyFrames.cs
- WindowsListViewItem.cs
- CodeLinePragma.cs
- BufferedReceiveManager.cs
- CodeConditionStatement.cs
- XsdCachingReader.cs
- XmlCharType.cs
- WebPartConnectionsConfigureVerb.cs
- SHA1Cng.cs
- LocatorGroup.cs
- EventSinkHelperWriter.cs
- ServiceRouteHandler.cs
- DescriptionCreator.cs
- VariableAction.cs
- HandledMouseEvent.cs
- LogPolicy.cs
- SspiSecurityTokenParameters.cs
- BrowserDefinition.cs
- ReceiveContent.cs
- MsiStyleLogWriter.cs
- ObjectViewQueryResultData.cs
- DocumentViewerBase.cs
- DashStyle.cs
- SqlOuterApplyReducer.cs
- HelpProvider.cs
- DependencyObjectProvider.cs
- XslAstAnalyzer.cs
- DesignerActionMethodItem.cs
- AddInStore.cs
- QueryPageSettingsEventArgs.cs
- figurelength.cs
- GroupStyle.cs
- CaseStatement.cs
- PhysicalAddress.cs
- ConfigurationSectionCollection.cs
- ReachIDocumentPaginatorSerializer.cs
- HeaderLabel.cs
- SoapIncludeAttribute.cs
- InfiniteTimeSpanConverter.cs
- GuidelineSet.cs
- XmlAttributeProperties.cs
- IconBitmapDecoder.cs
- DbUpdateCommandTree.cs
- SharedStatics.cs
- XmlSchemaAttributeGroupRef.cs
- LicenseException.cs
- LambdaCompiler.cs
- ProfileService.cs
- Type.cs
- ErrorEventArgs.cs
- Set.cs
- SizeConverter.cs
- InheritanceRules.cs
- SQLMembershipProvider.cs
- ResourcePool.cs
- ChangePasswordDesigner.cs
- MsmqIntegrationMessagePool.cs
- ResourceFallbackManager.cs
- FlowDocumentReader.cs
- SafeFileMappingHandle.cs
- SqlDataSourceFilteringEventArgs.cs
- DropSource.cs
- FunctionCommandText.cs
- TextTreeUndoUnit.cs
- DataKey.cs
- NamedPipeConnectionPoolSettingsElement.cs
- ConfigurationValidatorAttribute.cs
- CodeDomSerializationProvider.cs
- AdapterUtil.cs
- DateTimeFormatInfoScanner.cs
- Queue.cs
- CounterCreationDataCollection.cs
- IisNotInstalledException.cs
- TheQuery.cs
- Int64KeyFrameCollection.cs
- ConfigXmlComment.cs
- PageThemeCodeDomTreeGenerator.cs
- loginstatus.cs
- Camera.cs
- PartialTrustVisibleAssembly.cs
- TargetControlTypeCache.cs
- LineGeometry.cs