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
- CookieProtection.cs
- DefaultParameterValueAttribute.cs
- ReaderContextStackData.cs
- TitleStyle.cs
- WorkflowMessageEventArgs.cs
- ObservableCollection.cs
- XmlSchemaCollection.cs
- Registration.cs
- WindowsEditBox.cs
- HtmlControl.cs
- CombinedGeometry.cs
- FixedSOMPageConstructor.cs
- LayoutUtils.cs
- dbdatarecord.cs
- SqlDataAdapter.cs
- DateTimeConverter.cs
- InstanceCollisionException.cs
- MessageBox.cs
- XmlConvert.cs
- Input.cs
- SchemaAttDef.cs
- TextRenderingModeValidation.cs
- AssemblyBuilder.cs
- PlainXmlWriter.cs
- SqlDataSourceEnumerator.cs
- ItemsPanelTemplate.cs
- WsatAdminException.cs
- NetNamedPipeSecurityMode.cs
- Menu.cs
- InfoCardAsymmetricCrypto.cs
- DataTableMapping.cs
- ListViewCommandEventArgs.cs
- CacheAxisQuery.cs
- BindingCompleteEventArgs.cs
- InitializationEventAttribute.cs
- DataFormat.cs
- ObjectStateEntry.cs
- PrefixQName.cs
- EpmSourcePathSegment.cs
- PermissionListSet.cs
- CommentGlyph.cs
- PermissionSetTriple.cs
- SqlEnums.cs
- IdleTimeoutMonitor.cs
- NetPipeSection.cs
- RandomNumberGenerator.cs
- FormsAuthenticationUserCollection.cs
- RuntimeResourceSet.cs
- PropertyMapper.cs
- StorageScalarPropertyMapping.cs
- RSAPKCS1KeyExchangeFormatter.cs
- HtmlInputCheckBox.cs
- HttpModuleAction.cs
- XmlLinkedNode.cs
- XmlCompatibilityReader.cs
- Visual3DCollection.cs
- OutputCacheSettingsSection.cs
- DataTrigger.cs
- TreeNodeBindingDepthConverter.cs
- SelectionRange.cs
- Pool.cs
- TypedDatasetGenerator.cs
- ChangeTracker.cs
- ResourcesChangeInfo.cs
- XsdDataContractImporter.cs
- PeerNameResolver.cs
- SqlSupersetValidator.cs
- IsolatedStoragePermission.cs
- SoapEnumAttribute.cs
- DefaultPrintController.cs
- SinglePageViewer.cs
- DefaultSettingsSection.cs
- CaseExpr.cs
- ComplexLine.cs
- ObjectQueryProvider.cs
- TypeBuilder.cs
- Base64Stream.cs
- IconBitmapDecoder.cs
- DNS.cs
- MutexSecurity.cs
- StrongTypingException.cs
- NumberSubstitution.cs
- LifetimeServices.cs
- RegexParser.cs
- LifetimeServices.cs
- Rijndael.cs
- PackagingUtilities.cs
- StandardCommands.cs
- Utility.cs
- ResourceDisplayNameAttribute.cs
- FlowLayoutPanelDesigner.cs
- DockAndAnchorLayout.cs
- ToolboxItemFilterAttribute.cs
- TabControlEvent.cs
- DataGridHelper.cs
- DbReferenceCollection.cs
- HttpProcessUtility.cs
- Operators.cs
- CompatibleIComparer.cs
- BindingManagerDataErrorEventArgs.cs