Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorBlend.cs / 1 / 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. //------------------------------------------------------------------------------ //// 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
- IsolatedStorageFilePermission.cs
- MailWriter.cs
- ListControl.cs
- DataGridViewColumnHeaderCell.cs
- RuleSetReference.cs
- XmlCharacterData.cs
- FileDialogCustomPlace.cs
- SqlBuffer.cs
- TrackingServices.cs
- DecimalFormatter.cs
- CodeExpressionCollection.cs
- JsonByteArrayDataContract.cs
- PeerInvitationResponse.cs
- Events.cs
- DeobfuscatingStream.cs
- FrameworkTextComposition.cs
- TemplateBamlRecordReader.cs
- Decimal.cs
- MetadataArtifactLoader.cs
- SequentialWorkflowRootDesigner.cs
- UIAgentMonitorHandle.cs
- DataTable.cs
- ReverseComparer.cs
- ParagraphResult.cs
- UserPreferenceChangedEventArgs.cs
- SafeThreadHandle.cs
- MethodAccessException.cs
- CommandHelpers.cs
- BindingExpressionBase.cs
- RSACryptoServiceProvider.cs
- SimpleHandlerFactory.cs
- CommentEmitter.cs
- TableLayoutPanel.cs
- CommonDialog.cs
- ModifierKeysConverter.cs
- ListViewGroup.cs
- SessionStateModule.cs
- Int16Storage.cs
- SymLanguageVendor.cs
- ButtonFieldBase.cs
- HideDisabledControlAdapter.cs
- XsltContext.cs
- FixedNode.cs
- PropertyGridEditorPart.cs
- ImageSourceTypeConverter.cs
- WebPartEditorOkVerb.cs
- HostingPreferredMapPath.cs
- BoundsDrawingContextWalker.cs
- TypeBrowser.xaml.cs
- XsltContext.cs
- BuildResultCache.cs
- SerTrace.cs
- PageHandlerFactory.cs
- SQLDateTime.cs
- AutomationFocusChangedEventArgs.cs
- ClientConfigurationSystem.cs
- RoutedUICommand.cs
- ArgumentDirectionHelper.cs
- EffectiveValueEntry.cs
- WebPartTracker.cs
- TextDocumentView.cs
- EncodingInfo.cs
- StrokeIntersection.cs
- AssemblyCache.cs
- SiblingIterators.cs
- DataTemplateSelector.cs
- ToolStripDesigner.cs
- PropertyChangeTracker.cs
- RowTypeElement.cs
- PackageDigitalSignatureManager.cs
- BoolExpr.cs
- ColumnReorderedEventArgs.cs
- HeaderUtility.cs
- Vector3DAnimation.cs
- DataGridViewTopRowAccessibleObject.cs
- DiscriminatorMap.cs
- UIntPtr.cs
- ServiceOperation.cs
- HttpModule.cs
- AlphabeticalEnumConverter.cs
- URLAttribute.cs
- ComplexTypeEmitter.cs
- BrowserCapabilitiesCodeGenerator.cs
- GeneralTransform3D.cs
- InputLangChangeEvent.cs
- MethodAccessException.cs
- PKCS1MaskGenerationMethod.cs
- AlternateViewCollection.cs
- WebConfigurationHost.cs
- CreateUserWizard.cs
- DataPointer.cs
- arclist.cs
- PassportAuthentication.cs
- SubclassTypeValidatorAttribute.cs
- DesignerCategoryAttribute.cs
- RtfToken.cs
- RSAPKCS1KeyExchangeFormatter.cs
- QuestionEventArgs.cs
- ComponentEditorPage.cs
- SafeNativeMethods.cs