Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / fx / src / CommonUI / System / Drawing / Advanced / ColorMap.cs / 1 / ColorMap.cs
//------------------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//-----------------------------------------------------------------------------
/*************************************************************************\
*
* Copyright (c) 1998-1999, Microsoft Corp. All Rights Reserved.
*
* Module Name:
*
* ColorMap.cs
*
* Abstract:
*
* Native GDI+ ColorMap structure.
*
* Revision History:
*
* 1/25/2k [....]
* Created it.
*
\**************************************************************************/
namespace System.Drawing.Imaging {
using System.Diagnostics;
using System;
using System.Drawing;
///
///
/// Defines a map for converting colors.
///
public sealed class ColorMap {
Color oldColor;
Color newColor;
///
///
///
/// Initializes a new instance of the class.
///
///
public ColorMap() {
oldColor = new Color();
newColor = new Color();
}
///
///
///
/// Specifies the existing to be
/// converted.
///
///
public Color OldColor {
get { return oldColor; }
set { oldColor = value; }
}
///
///
///
/// Specifes the new to which to convert.
///
///
public Color NewColor {
get { return newColor; }
set { newColor = 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
- RequestUriProcessor.cs
- CustomPopupPlacement.cs
- ExpanderAutomationPeer.cs
- MobileContainerDesigner.cs
- WebPartUserCapability.cs
- TraceLevelStore.cs
- SourceSwitch.cs
- FileNameEditor.cs
- FrameDimension.cs
- ExcludeFromCodeCoverageAttribute.cs
- RequestBringIntoViewEventArgs.cs
- GenericTextProperties.cs
- SystemFonts.cs
- UniqueIdentifierService.cs
- URL.cs
- UserInitiatedNavigationPermission.cs
- StatusStrip.cs
- HtmlShim.cs
- XmlSchemaException.cs
- AtomServiceDocumentSerializer.cs
- XmlLinkedNode.cs
- CursorInteropHelper.cs
- ListViewPagedDataSource.cs
- ManagedFilter.cs
- DispatcherSynchronizationContext.cs
- UniqueIdentifierService.cs
- AggregateNode.cs
- OutputCacheSettingsSection.cs
- PageCodeDomTreeGenerator.cs
- SafeReversePInvokeHandle.cs
- CompositeDataBoundControl.cs
- TypeSystemHelpers.cs
- ScrollBar.cs
- SecurityTokenResolver.cs
- ZoneIdentityPermission.cs
- DataGridItemCollection.cs
- _AutoWebProxyScriptEngine.cs
- XmlSerializerSection.cs
- FlowDocumentScrollViewer.cs
- DetailsViewInsertedEventArgs.cs
- WmiEventSink.cs
- JournalEntryListConverter.cs
- StringAnimationBase.cs
- StrokeSerializer.cs
- documentsequencetextpointer.cs
- Propagator.cs
- BamlWriter.cs
- AutomationFocusChangedEventArgs.cs
- Viewport3DAutomationPeer.cs
- QilTargetType.cs
- ThreadAttributes.cs
- MobileComponentEditorPage.cs
- SqlMethodAttribute.cs
- CodeTypeMember.cs
- KeyNotFoundException.cs
- RewritingValidator.cs
- ServiceNotStartedException.cs
- MeshGeometry3D.cs
- FormClosedEvent.cs
- NullReferenceException.cs
- ErrorInfoXmlDocument.cs
- IdentifierCollection.cs
- ComponentDispatcher.cs
- XmlAttributeAttribute.cs
- SoapHeader.cs
- controlskin.cs
- XmlImplementation.cs
- X509UI.cs
- ExpandSegmentCollection.cs
- WindowInteropHelper.cs
- CallbackValidatorAttribute.cs
- IPEndPointCollection.cs
- TypeValidationEventArgs.cs
- PagesSection.cs
- FtpWebRequest.cs
- MulticastDelegate.cs
- BinaryConverter.cs
- XmlDomTextWriter.cs
- SemanticAnalyzer.cs
- RegisteredDisposeScript.cs
- XmlILOptimizerVisitor.cs
- ValuePattern.cs
- SQLString.cs
- HScrollBar.cs
- ScopeCollection.cs
- TdsParameterSetter.cs
- ControlParameter.cs
- SerializationEventsCache.cs
- BuildProvidersCompiler.cs
- FormsAuthenticationUserCollection.cs
- PropertyChangeTracker.cs
- LoginStatusDesigner.cs
- LayoutInformation.cs
- XmlNodeChangedEventArgs.cs
- DesignerForm.cs
- SafeViewOfFileHandle.cs
- BulletedList.cs
- ColumnResizeAdorner.cs
- RenameRuleObjectDialog.cs
- BlobPersonalizationState.cs