Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- CachedTypeface.cs
- BinaryExpressionHelper.cs
- SqlUdtInfo.cs
- COM2EnumConverter.cs
- UserValidatedEventArgs.cs
- UnsafeCollabNativeMethods.cs
- IItemContainerGenerator.cs
- ClientFormsAuthenticationCredentials.cs
- Imaging.cs
- OleDbReferenceCollection.cs
- PeerNodeAddress.cs
- XmlSchemaAttributeGroupRef.cs
- SortAction.cs
- GenericsInstances.cs
- InstanceDataCollectionCollection.cs
- ConnectionProviderAttribute.cs
- Semaphore.cs
- OptimizerPatterns.cs
- GeneralTransform3D.cs
- BlockCollection.cs
- Storyboard.cs
- OdbcError.cs
- SyncMethodInvoker.cs
- HandleRef.cs
- ParameterCollection.cs
- AttributedMetaModel.cs
- GACMembershipCondition.cs
- WebPartCatalogAddVerb.cs
- XmlException.cs
- HttpModuleActionCollection.cs
- EncodingInfo.cs
- XmlSchemaSequence.cs
- MsmqOutputSessionChannel.cs
- WebPartExportVerb.cs
- StyleTypedPropertyAttribute.cs
- SelectQueryOperator.cs
- GridViewRowEventArgs.cs
- AssertFilter.cs
- RoleGroup.cs
- SafeSerializationManager.cs
- ZoomPercentageConverter.cs
- TypeToken.cs
- CacheOutputQuery.cs
- DataGridCheckBoxColumn.cs
- CompositeClientFormatter.cs
- ClientBase.cs
- OdbcInfoMessageEvent.cs
- XmlTextEncoder.cs
- ButtonFlatAdapter.cs
- RuleSetDialog.cs
- DataServiceRequest.cs
- X509RawDataKeyIdentifierClause.cs
- SessionStateItemCollection.cs
- XPathDescendantIterator.cs
- EventMemberCodeDomSerializer.cs
- ParameterBuilder.cs
- BindingValueChangedEventArgs.cs
- TraceUtils.cs
- RandomNumberGenerator.cs
- HWStack.cs
- CodeGenerator.cs
- HttpProfileGroupBase.cs
- ISO2022Encoding.cs
- CodeTypeReference.cs
- ColorInterpolationModeValidation.cs
- _HTTPDateParse.cs
- WebExceptionStatus.cs
- HttpCachePolicyWrapper.cs
- BigInt.cs
- RequestCacheEntry.cs
- ToolStripSeparator.cs
- Evaluator.cs
- QuotedStringFormatReader.cs
- initElementDictionary.cs
- CheckBoxRenderer.cs
- LambdaCompiler.Address.cs
- ListViewItem.cs
- PreProcessInputEventArgs.cs
- TargetParameterCountException.cs
- XmlWriter.cs
- XmlTextReader.cs
- _UriSyntax.cs
- PocoEntityKeyStrategy.cs
- WorkflowHostingResponseContext.cs
- MethodBuilderInstantiation.cs
- RemotingException.cs
- XmlDataCollection.cs
- GPStream.cs
- CheckBoxStandardAdapter.cs
- ImageButton.cs
- TextFormatterImp.cs
- MbpInfo.cs
- PagePropertiesChangingEventArgs.cs
- ProfileModule.cs
- CollectionViewGroupInternal.cs
- StructuredType.cs
- DataGridLinkButton.cs
- TransportListener.cs
- ProfileInfo.cs
- ProtectedConfigurationSection.cs