Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / fx / src / CommonUI / System / Drawing / Advanced / Blend.cs / 2 / Blend.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
namespace System.Drawing.Drawing2D {
using System.Diagnostics;
using System;
using System.Drawing;
///
///
///
/// Defines a blend pattern for a
/// .
///
///
public sealed class Blend {
float[] factors;
float[] positions;
///
///
///
/// Initializes a new instance of the
/// class.
///
///
public Blend() {
factors = new float[1];
positions = new float[1];
}
///
///
///
/// Initializes a new instance of the
/// class with the specified number of factors and positions.
///
///
public Blend(int count) {
factors = new float[count];
positions = new float[count];
}
///
///
/// Specifies an array of blend factors for the
/// gradient.
///
public float[] Factors {
get {
return factors;
}
set {
factors = value;
}
}
///
///
///
/// Specifies an array of blend positions for the gradient.
///
///
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 a blend pattern for a
/// .
///
///
public sealed class Blend {
float[] factors;
float[] positions;
///
///
///
/// Initializes a new instance of the
/// class.
///
///
public Blend() {
factors = new float[1];
positions = new float[1];
}
///
///
///
/// Initializes a new instance of the
/// class with the specified number of factors and positions.
///
///
public Blend(int count) {
factors = new float[count];
positions = new float[count];
}
///
///
/// Specifies an array of blend factors for the
/// gradient.
///
public float[] Factors {
get {
return factors;
}
set {
factors = value;
}
}
///
///
///
/// Specifies an array of blend positions for the gradient.
///
///
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
- LinearKeyFrames.cs
- DataSourceXmlTextReader.cs
- TypeResolver.cs
- MachineSettingsSection.cs
- PatternMatcher.cs
- XmlILTrace.cs
- SafeRegistryHandle.cs
- EventProperty.cs
- StrokeIntersection.cs
- keycontainerpermission.cs
- PenContext.cs
- __Filters.cs
- NumberFormatInfo.cs
- WmlListAdapter.cs
- Compiler.cs
- PassportPrincipal.cs
- ExpressionTextBox.xaml.cs
- InfoCardClaim.cs
- GridSplitterAutomationPeer.cs
- MarkupProperty.cs
- XmlSchemaAttribute.cs
- OleDbPropertySetGuid.cs
- DbUpdateCommandTree.cs
- SlotInfo.cs
- ResourceContainer.cs
- PropertyInfo.cs
- sqlnorm.cs
- DetailsViewDeleteEventArgs.cs
- AvtEvent.cs
- PKCS1MaskGenerationMethod.cs
- CompilerWrapper.cs
- EditCommandColumn.cs
- MgmtConfigurationRecord.cs
- FlowLayoutPanel.cs
- TemplateComponentConnector.cs
- RoutedEventValueSerializer.cs
- HttpModuleAction.cs
- StyleHelper.cs
- XmlComment.cs
- VBCodeProvider.cs
- DetailsViewUpdatedEventArgs.cs
- SignatureToken.cs
- SymLanguageType.cs
- ArrayListCollectionBase.cs
- FunctionUpdateCommand.cs
- EntityTypeBase.cs
- SelectionProcessor.cs
- DNS.cs
- CSharpCodeProvider.cs
- XmlSchemaDatatype.cs
- TextSyndicationContentKindHelper.cs
- basecomparevalidator.cs
- DetailsViewDeleteEventArgs.cs
- EnumMemberAttribute.cs
- RowParagraph.cs
- SettingsSection.cs
- LightweightEntityWrapper.cs
- NonParentingControl.cs
- DataListCommandEventArgs.cs
- CompositeControl.cs
- HttpFileCollectionWrapper.cs
- MemoryMappedFile.cs
- PackageDigitalSignature.cs
- ReachNamespaceInfo.cs
- TextBlockAutomationPeer.cs
- DESCryptoServiceProvider.cs
- MethodToken.cs
- RadioButtonList.cs
- ConfigXmlCDataSection.cs
- TrackingServices.cs
- SchemaMerger.cs
- Unit.cs
- Rfc2898DeriveBytes.cs
- HandledMouseEvent.cs
- SimpleApplicationHost.cs
- TreeNodeStyleCollection.cs
- LOSFormatter.cs
- SID.cs
- ListViewGroup.cs
- CrossContextChannel.cs
- MetadataArtifactLoaderCompositeResource.cs
- NotificationContext.cs
- DataKey.cs
- CustomTokenProvider.cs
- ObjRef.cs
- SecurityRequiresReviewAttribute.cs
- activationcontext.cs
- PartialToken.cs
- ArgIterator.cs
- CodeGroup.cs
- PackageRelationshipCollection.cs
- OdbcConnectionHandle.cs
- TypeContext.cs
- NativeObjectSecurity.cs
- MultiView.cs
- SeverityFilter.cs
- RequestCacheEntry.cs
- VisualStyleRenderer.cs
- DeferredSelectedIndexReference.cs
- HttpCapabilitiesSectionHandler.cs