Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / Effects / BitmapEffectInput.cs / 1 / BitmapEffectInput.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2005 // // File: BitmapEffectInput.cs //----------------------------------------------------------------------------- using MS.Internal; using System; using System.IO; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Reflection; using System.Runtime.InteropServices; using System.Windows; using System.Windows.Media; using System.Windows.Markup; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Media.Imaging; using System.Collections.Generic; namespace System.Windows.Media.Effects { ////// BitmapEffect class /// public sealed partial class BitmapEffectInput { private static BitmapSource s_defaultInputSource; ////// Constructor /// public BitmapEffectInput() { } ////// Constructor /// /// input image public BitmapEffectInput(BitmapSource input) { Input = input; } ////// ShouldSerializeInput - this is called by the serializer to determine whether or not to /// serialize the Input property. /// [EditorBrowsable(EditorBrowsableState.Never)] public bool ShouldSerializeInput() { return (Input != BitmapEffectInput.ContextInputSource); } ////// Returns a sentinel value representing the source that is derived from context /// public static BitmapSource ContextInputSource { get { if (s_defaultInputSource == null) { BitmapSource source = new UnmanagedBitmapWrapper(true); source.Freeze(); s_defaultInputSource = source; } return s_defaultInputSource; } } } } // 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
- UnsafeNativeMethods.cs
- ResourceAttributes.cs
- PathGeometry.cs
- CatalogZone.cs
- Path.cs
- WebHttpBindingElement.cs
- OleDbCommand.cs
- DataStorage.cs
- SecurityAlgorithmSuiteConverter.cs
- ServiceObjectContainer.cs
- FormatterConverter.cs
- TextEditorCopyPaste.cs
- PropertyGroupDescription.cs
- XamlTemplateSerializer.cs
- Dictionary.cs
- QuaternionAnimationUsingKeyFrames.cs
- TableRowGroupCollection.cs
- MouseGesture.cs
- Variant.cs
- DBSqlParserColumn.cs
- AutomationPropertyInfo.cs
- WasAdminWrapper.cs
- ScrollProperties.cs
- EntityDesignerBuildProvider.cs
- AlphaSortedEnumConverter.cs
- MouseOverProperty.cs
- SignatureToken.cs
- EventsTab.cs
- TextTrailingCharacterEllipsis.cs
- ProjectionCamera.cs
- WindowsAuthenticationEventArgs.cs
- TextChangedEventArgs.cs
- MarshalByValueComponent.cs
- DeclarationUpdate.cs
- ListItem.cs
- UpdateRecord.cs
- EdmPropertyAttribute.cs
- SamlAttribute.cs
- TabletDeviceInfo.cs
- ObjectItemAttributeAssemblyLoader.cs
- InnerItemCollectionView.cs
- SafeUserTokenHandle.cs
- LinkedResource.cs
- ToolboxItemFilterAttribute.cs
- XmlCharacterData.cs
- Header.cs
- TypeUsageBuilder.cs
- KeyboardEventArgs.cs
- InstanceBehavior.cs
- RepeatBehavior.cs
- WizardPanel.cs
- PrivateFontCollection.cs
- MissingMethodException.cs
- TextInfo.cs
- TextTreeUndoUnit.cs
- RootBrowserWindowAutomationPeer.cs
- SqlUserDefinedTypeAttribute.cs
- EntityCommand.cs
- DataSetMappper.cs
- MaterialGroup.cs
- MLangCodePageEncoding.cs
- AnnotationStore.cs
- Setter.cs
- SourceItem.cs
- GreenMethods.cs
- TypeUtil.cs
- LassoSelectionBehavior.cs
- util.cs
- CommandConverter.cs
- CodeVariableReferenceExpression.cs
- SapiRecognizer.cs
- UserControlParser.cs
- ReadWriteObjectLock.cs
- DataGridViewRow.cs
- Clock.cs
- Assembly.cs
- TabPage.cs
- EncoderExceptionFallback.cs
- HierarchicalDataSourceDesigner.cs
- httpapplicationstate.cs
- ImageListImage.cs
- FtpCachePolicyElement.cs
- UserPreferenceChangingEventArgs.cs
- CodeAssignStatement.cs
- BindingList.cs
- DesignerHelpers.cs
- XmlSchemaImport.cs
- DynamicField.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- PresentationAppDomainManager.cs
- Int32RectConverter.cs
- CredentialSelector.cs
- QueryCacheManager.cs
- DataGridViewRowCancelEventArgs.cs
- StateItem.cs
- EntityClassGenerator.cs
- TypeConverterAttribute.cs
- WebBrowserProgressChangedEventHandler.cs
- HierarchicalDataSourceControl.cs
- DbConnectionPool.cs