Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ //// 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
- XmlDocumentFragment.cs
- MachineKeyConverter.cs
- FixedSOMSemanticBox.cs
- NumericUpDownAccelerationCollection.cs
- InsufficientExecutionStackException.cs
- TransformedBitmap.cs
- ControlOperationInvoker.cs
- ButtonAutomationPeer.cs
- Set.cs
- TextTreeTextNode.cs
- ListParagraph.cs
- ArglessEventHandlerProxy.cs
- SafeViewOfFileHandle.cs
- CodeSnippetExpression.cs
- UnsafeNativeMethods.cs
- SByte.cs
- RtType.cs
- TypeConstant.cs
- Brushes.cs
- HttpCookie.cs
- HtmlInputFile.cs
- ToolStripGripRenderEventArgs.cs
- SerializationAttributes.cs
- XPathException.cs
- OdbcUtils.cs
- odbcmetadatacolumnnames.cs
- XPathParser.cs
- RemotingAttributes.cs
- MimeParameters.cs
- RecommendedAsConfigurableAttribute.cs
- NumericUpDownAcceleration.cs
- AssociationTypeEmitter.cs
- SqlRowUpdatedEvent.cs
- wmiprovider.cs
- WebPartEditorOkVerb.cs
- sqlcontext.cs
- TransformedBitmap.cs
- ApplicationFileCodeDomTreeGenerator.cs
- ColumnHeaderConverter.cs
- DesignObjectWrapper.cs
- MimeMapping.cs
- EllipseGeometry.cs
- Style.cs
- Variant.cs
- CacheSection.cs
- DataTemplateSelector.cs
- EventLogPermissionEntry.cs
- DelayedRegex.cs
- EmptyEnumerable.cs
- XmlToDatasetMap.cs
- LinearQuaternionKeyFrame.cs
- FontFamilyConverter.cs
- ConstrainedDataObject.cs
- OpCellTreeNode.cs
- DropShadowBitmapEffect.cs
- RbTree.cs
- AuthenticationService.cs
- AsyncResult.cs
- WindowsSecurityToken.cs
- WindowProviderWrapper.cs
- BamlLocalizer.cs
- PageAsyncTaskManager.cs
- ConfigXmlCDataSection.cs
- AsmxEndpointPickerExtension.cs
- TripleDESCryptoServiceProvider.cs
- DBSchemaTable.cs
- ParseElement.cs
- MenuItemStyle.cs
- SemaphoreFullException.cs
- ContentElementAutomationPeer.cs
- XmlSchemaExporter.cs
- ConfigsHelper.cs
- QueryOperator.cs
- XmlAttributeOverrides.cs
- EntityDataSourceSelectedEventArgs.cs
- Rectangle.cs
- SqlExpressionNullability.cs
- TemplateModeChangedEventArgs.cs
- PasswordDeriveBytes.cs
- Message.cs
- TypeElementCollection.cs
- MouseGestureValueSerializer.cs
- MatrixTransform3D.cs
- DecimalAnimationUsingKeyFrames.cs
- BindingNavigatorDesigner.cs
- HandlerBase.cs
- ControlBuilderAttribute.cs
- ActivityScheduledQuery.cs
- CultureSpecificCharacterBufferRange.cs
- _WebProxyDataBuilder.cs
- UIHelper.cs
- SqlParameterCollection.cs
- AgileSafeNativeMemoryHandle.cs
- AutoGeneratedField.cs
- ColorContextHelper.cs
- XmlDataSourceView.cs
- VisualProxy.cs
- DeflateInput.cs
- ProfileParameter.cs
- FocusManager.cs