Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / wpf / src / Core / CSharp / 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. //------------------------------------------------------------------------------ // 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
- Funcletizer.cs
- TerminatorSinks.cs
- InputBindingCollection.cs
- SqlMethodAttribute.cs
- QueryPrefixOp.cs
- WindowsAuthenticationEventArgs.cs
- SqlConnectionPoolGroupProviderInfo.cs
- FormsAuthenticationUserCollection.cs
- HTMLTagNameToTypeMapper.cs
- XmlSigningNodeWriter.cs
- ModelTreeEnumerator.cs
- ISAPIRuntime.cs
- UpdateException.cs
- TextWriter.cs
- ToolStripPanel.cs
- Attributes.cs
- Operators.cs
- SqlBulkCopy.cs
- CheckBoxStandardAdapter.cs
- ValueChangedEventManager.cs
- TextPenaltyModule.cs
- TemplateKeyConverter.cs
- MapPathBasedVirtualPathProvider.cs
- CalendarAutomationPeer.cs
- ObjectContext.cs
- MatrixTransform.cs
- SspiNegotiationTokenAuthenticatorState.cs
- OdbcConnectionStringbuilder.cs
- InvalidPropValue.cs
- DynamicRouteExpression.cs
- EpmSyndicationContentSerializer.cs
- User.cs
- PageAsyncTaskManager.cs
- NotifyParentPropertyAttribute.cs
- DataGridColumnHeaderItemAutomationPeer.cs
- SmtpTransport.cs
- HashSetEqualityComparer.cs
- SmtpLoginAuthenticationModule.cs
- Calendar.cs
- IsolatedStorageException.cs
- RTLAwareMessageBox.cs
- ResourceDescriptionAttribute.cs
- AutomationProperty.cs
- Tracking.cs
- DesignerVerbCollection.cs
- BuilderPropertyEntry.cs
- SoapException.cs
- HttpCacheParams.cs
- EntityContainer.cs
- SqlInfoMessageEvent.cs
- LassoSelectionBehavior.cs
- GraphicsPathIterator.cs
- hwndwrapper.cs
- ImmutableCommunicationTimeouts.cs
- Console.cs
- InvokeMethod.cs
- Zone.cs
- Effect.cs
- XmlReader.cs
- WsiProfilesElementCollection.cs
- FormView.cs
- HttpCookiesSection.cs
- ReferenceCountedObject.cs
- ThreadStartException.cs
- Version.cs
- NonDualMessageSecurityOverHttpElement.cs
- RoleGroupCollection.cs
- HtmlImage.cs
- Baml6Assembly.cs
- ClientConvert.cs
- XamlWrapperReaders.cs
- GifBitmapEncoder.cs
- HttpConfigurationSystem.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- StylusCaptureWithinProperty.cs
- ObjectManager.cs
- ExceptionTrace.cs
- ImmutableAssemblyCacheEntry.cs
- Quaternion.cs
- UpWmlMobileTextWriter.cs
- MaskDescriptors.cs
- SynchronizedInputProviderWrapper.cs
- StorageMappingItemLoader.cs
- MessageSmuggler.cs
- HwndKeyboardInputProvider.cs
- ConfigurationLoader.cs
- GradientStopCollection.cs
- DataGridRow.cs
- ImageSource.cs
- LineInfo.cs
- ClassHandlersStore.cs
- Border.cs
- MailWriter.cs
- PlainXmlSerializer.cs
- TableDetailsCollection.cs
- AutomationElementCollection.cs
- XmlQualifiedName.cs
- ContextQuery.cs
- LiteralTextParser.cs
- PropertyCondition.cs