Code:
/ DotNET / DotNET / 8.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
- ToolTipAutomationPeer.cs
- SchemaCollectionPreprocessor.cs
- HideDisabledControlAdapter.cs
- GridViewCancelEditEventArgs.cs
- FolderBrowserDialog.cs
- WorkflowOperationInvoker.cs
- ProcessHost.cs
- ResourceDisplayNameAttribute.cs
- PageHandlerFactory.cs
- SqlNode.cs
- WebServiceFault.cs
- ColorMatrix.cs
- SqlNodeTypeOperators.cs
- TextWriterTraceListener.cs
- BigInt.cs
- AssemblyInfo.cs
- SwitchAttribute.cs
- RegionInfo.cs
- RightNameExpirationInfoPair.cs
- FixedSOMElement.cs
- DockPatternIdentifiers.cs
- WebPartCancelEventArgs.cs
- ErrorWebPart.cs
- ToolStripContextMenu.cs
- Page.cs
- ProfileProvider.cs
- SecureEnvironment.cs
- FlowDocumentReader.cs
- ComponentEvent.cs
- HtmlInputCheckBox.cs
- MasterPageBuildProvider.cs
- AccessDataSourceView.cs
- StylusTip.cs
- BitmapCodecInfoInternal.cs
- MimeMapping.cs
- TransactionFlowAttribute.cs
- ComponentResourceKeyConverter.cs
- TrackingMemoryStream.cs
- CodeTypeOfExpression.cs
- DataGrid.cs
- MachineKey.cs
- CommonProperties.cs
- DbConnectionClosed.cs
- XsltConvert.cs
- Point3DConverter.cs
- SingleAnimation.cs
- HijriCalendar.cs
- DeferredTextReference.cs
- PermissionRequestEvidence.cs
- XmlElementList.cs
- IncrementalReadDecoders.cs
- SimpleBitVector32.cs
- HwndAppCommandInputProvider.cs
- ServiceInstanceProvider.cs
- DecoderReplacementFallback.cs
- RoutedCommand.cs
- newinstructionaction.cs
- RegistryConfigurationProvider.cs
- LinkButton.cs
- GlobalItem.cs
- NativeMethodsCLR.cs
- Blend.cs
- UITypeEditor.cs
- SectionRecord.cs
- FactoryMaker.cs
- FloaterBaseParaClient.cs
- HandledEventArgs.cs
- CookielessData.cs
- HtmlTableCell.cs
- EndOfStreamException.cs
- StrongNamePublicKeyBlob.cs
- ManagementPath.cs
- BezierSegment.cs
- TableLayoutRowStyleCollection.cs
- WebPartDescriptionCollection.cs
- SQLBoolean.cs
- PolicyLevel.cs
- ZipIOZip64EndOfCentralDirectoryBlock.cs
- RewritingValidator.cs
- ImageListUtils.cs
- BaseProcessor.cs
- EntityWrapper.cs
- SchemaCollectionCompiler.cs
- SuppressIldasmAttribute.cs
- WebServiceData.cs
- CriticalHandle.cs
- SerializationEventsCache.cs
- TargetConverter.cs
- RangeValuePattern.cs
- DiscoveryUtility.cs
- ListViewDataItem.cs
- WebPartExportVerb.cs
- WinFormsComponentEditor.cs
- TextRenderer.cs
- MetabaseServerConfig.cs
- ExecutionScope.cs
- ByteAnimation.cs
- CodeGotoStatement.cs
- JapaneseCalendar.cs
- EntryWrittenEventArgs.cs