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
- ReadOnlyCollection.cs
- Activity.cs
- DataObjectMethodAttribute.cs
- HelpKeywordAttribute.cs
- Image.cs
- ClientScriptManagerWrapper.cs
- CompilerGlobalScopeAttribute.cs
- WebMessageBodyStyleHelper.cs
- RoleServiceManager.cs
- UpdateProgress.cs
- GridViewColumnCollection.cs
- DependencyPropertyKind.cs
- SystemInfo.cs
- SwitchLevelAttribute.cs
- FilterQueryOptionExpression.cs
- ShapingEngine.cs
- MailMessage.cs
- WebContext.cs
- RangeBaseAutomationPeer.cs
- BaseUriHelper.cs
- DataGridViewCellStyleChangedEventArgs.cs
- FragmentQuery.cs
- DbXmlEnabledProviderManifest.cs
- QueryOutputWriter.cs
- FontStretchConverter.cs
- LayoutSettings.cs
- PolyBezierSegment.cs
- DataGridPagerStyle.cs
- LoginCancelEventArgs.cs
- XmlElementAttribute.cs
- TextLine.cs
- InvalidateEvent.cs
- WriteableBitmap.cs
- XmlRawWriter.cs
- DataGridViewAdvancedBorderStyle.cs
- StoragePropertyMapping.cs
- MulticastIPAddressInformationCollection.cs
- SortedList.cs
- AnnotationResourceChangedEventArgs.cs
- SendMailErrorEventArgs.cs
- FontStyles.cs
- Semaphore.cs
- COSERVERINFO.cs
- CodeTypeMember.cs
- SyndicationSerializer.cs
- EncryptedData.cs
- BufferedWebEventProvider.cs
- FixedSOMElement.cs
- FastPropertyAccessor.cs
- DataGridSortCommandEventArgs.cs
- UnmanagedMemoryAccessor.cs
- ValueChangedEventManager.cs
- ControlPersister.cs
- HandledEventArgs.cs
- SqlProfileProvider.cs
- HitTestWithPointDrawingContextWalker.cs
- CompressedStack.cs
- RegexBoyerMoore.cs
- PropertyInfoSet.cs
- DecoderNLS.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- XmlChoiceIdentifierAttribute.cs
- SizeLimitedCache.cs
- Geometry3D.cs
- OperatingSystem.cs
- IndentTextWriter.cs
- MaskInputRejectedEventArgs.cs
- InkCanvasSelection.cs
- XmlHierarchicalEnumerable.cs
- OperatingSystem.cs
- mediaeventshelper.cs
- BooleanConverter.cs
- SizeChangedEventArgs.cs
- ConditionBrowserDialog.cs
- CompositeDuplexBindingElementImporter.cs
- UriTemplatePathPartiallyEquivalentSet.cs
- HeaderUtility.cs
- ToolStripDropDownItem.cs
- WebPartUtil.cs
- EdmToObjectNamespaceMap.cs
- EarlyBoundInfo.cs
- PageAdapter.cs
- IxmlLineInfo.cs
- SapiRecoContext.cs
- MailWebEventProvider.cs
- BuildDependencySet.cs
- SafeSecurityHandles.cs
- sqlinternaltransaction.cs
- IImplicitResourceProvider.cs
- CodeAttachEventStatement.cs
- AssociationSetEnd.cs
- ItemMap.cs
- HTMLTextWriter.cs
- FixedHyperLink.cs
- DBPropSet.cs
- HttpCacheParams.cs
- Tracer.cs
- ConnectivityStatus.cs
- ApplyHostConfigurationBehavior.cs
- ErrorTableItemStyle.cs