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
- DragDrop.cs
- GradientBrush.cs
- BitArray.cs
- FileDialog_Vista.cs
- NotSupportedException.cs
- RegistrySecurity.cs
- SchemaImporterExtensionElementCollection.cs
- OutputCacheProfile.cs
- AnnotationDocumentPaginator.cs
- CharacterHit.cs
- HttpPostProtocolImporter.cs
- UIInitializationException.cs
- FileFormatException.cs
- SmiEventStream.cs
- LinkLabelLinkClickedEvent.cs
- TypedRowGenerator.cs
- XmlComment.cs
- TemplateColumn.cs
- ToolTipAutomationPeer.cs
- BaseTemplateParser.cs
- Permission.cs
- XmlHierarchicalDataSourceView.cs
- EncodingTable.cs
- GatewayDefinition.cs
- unsafenativemethodsother.cs
- TextSegment.cs
- WorkflowDataContext.cs
- SystemWebSectionGroup.cs
- TransactionFilter.cs
- ContentValidator.cs
- DocumentPageHost.cs
- RangeValueProviderWrapper.cs
- ReadWriteSpinLock.cs
- ComponentDispatcher.cs
- LayoutDump.cs
- DisposableCollectionWrapper.cs
- ColorBuilder.cs
- AbandonedMutexException.cs
- RegionInfo.cs
- FileNotFoundException.cs
- ValidationHelper.cs
- HeaderCollection.cs
- HashAlgorithm.cs
- AuthenticationSchemesHelper.cs
- RotateTransform3D.cs
- StrongName.cs
- ReliableMessagingVersion.cs
- Parameter.cs
- ConfigXmlDocument.cs
- Pair.cs
- Connector.cs
- XmlConvert.cs
- FunctionParameter.cs
- EntityStoreSchemaGenerator.cs
- ContourSegment.cs
- AnimationClock.cs
- ThreadNeutralSemaphore.cs
- Group.cs
- ConnectionProviderAttribute.cs
- ShaderRenderModeValidation.cs
- HttpProcessUtility.cs
- DetailsViewInsertEventArgs.cs
- ContractTypeNameCollection.cs
- ExpressionVisitor.cs
- Vector3DKeyFrameCollection.cs
- WaitForChangedResult.cs
- OleDbPermission.cs
- MetadataPropertyAttribute.cs
- ObjectContext.cs
- CompoundFileStorageReference.cs
- Wildcard.cs
- HttpValueCollection.cs
- DesignerSerializerAttribute.cs
- XmlNamedNodeMap.cs
- MarkupCompiler.cs
- AutomationPatternInfo.cs
- XmlLoader.cs
- nulltextnavigator.cs
- CommandCollectionEditor.cs
- TagMapCollection.cs
- ExtendedPropertyCollection.cs
- SmiMetaDataProperty.cs
- BlockUIContainer.cs
- Query.cs
- WebBrowsableAttribute.cs
- FreezableOperations.cs
- UtilityExtension.cs
- CodeEventReferenceExpression.cs
- PersonalizationState.cs
- TimeSpanValidator.cs
- ReadOnlyHierarchicalDataSourceView.cs
- TextServicesHost.cs
- SoapAttributeOverrides.cs
- ParameterElementCollection.cs
- RubberbandSelector.cs
- RegionInfo.cs
- GlyphingCache.cs
- SpanIndex.cs
- TreeNodeCollection.cs
- CodeAttributeDeclaration.cs