Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Effects / BitmapEffectInput.cs / 1305600 / 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
- WebServiceFaultDesigner.cs
- AdapterUtil.cs
- ScriptHandlerFactory.cs
- TextRunCache.cs
- AuthorizationRuleCollection.cs
- DataPagerFieldCommandEventArgs.cs
- ParameterCollectionEditor.cs
- FrameworkElement.cs
- ListItemCollection.cs
- HelpProvider.cs
- BaseAsyncResult.cs
- DataGridCommandEventArgs.cs
- StructuralCache.cs
- ManagementClass.cs
- PasswordBox.cs
- BitmapEffectInputData.cs
- SQLInt64.cs
- ToolStripItemTextRenderEventArgs.cs
- EdmConstants.cs
- NGCSerializer.cs
- RSAPKCS1KeyExchangeFormatter.cs
- XmlDictionaryString.cs
- CodeMethodInvokeExpression.cs
- MimeMapping.cs
- DataGridViewCellParsingEventArgs.cs
- NoPersistProperty.cs
- ExpressionBinding.cs
- Registry.cs
- HMACSHA384.cs
- CompiledRegexRunnerFactory.cs
- ViewCellSlot.cs
- unsafeIndexingFilterStream.cs
- WindowsSecurityTokenAuthenticator.cs
- BulletChrome.cs
- BufferModeSettings.cs
- SqlDependencyListener.cs
- BinaryNode.cs
- X509ServiceCertificateAuthentication.cs
- DataBoundControlDesigner.cs
- RepeaterItem.cs
- DeclarativeCatalogPart.cs
- UnaryNode.cs
- SchemaElementLookUpTable.cs
- DispatcherHooks.cs
- InputManager.cs
- DataSourceHelper.cs
- TypeBuilderInstantiation.cs
- MonthChangedEventArgs.cs
- versioninfo.cs
- Vector3DAnimationBase.cs
- FactoryMaker.cs
- StylusOverProperty.cs
- WaitHandleCannotBeOpenedException.cs
- Memoizer.cs
- LinqToSqlWrapper.cs
- IdentityModelStringsVersion1.cs
- RecipientIdentity.cs
- SlipBehavior.cs
- EdgeModeValidation.cs
- RecommendedAsConfigurableAttribute.cs
- DocumentViewerBaseAutomationPeer.cs
- DirtyTextRange.cs
- ToolStripPanelRenderEventArgs.cs
- XmlWhitespace.cs
- unitconverter.cs
- ColumnWidthChangedEvent.cs
- SqlDataRecord.cs
- HttpApplicationFactory.cs
- XMLSchema.cs
- LightweightEntityWrapper.cs
- DesignOnlyAttribute.cs
- SafeSystemMetrics.cs
- ThreadStateException.cs
- Globals.cs
- CharacterMetricsDictionary.cs
- BitmapEffectCollection.cs
- ButtonStandardAdapter.cs
- ActivityCodeDomSerializer.cs
- NavigationService.cs
- NodeInfo.cs
- ClientScriptManager.cs
- XmlSchemaComplexContentExtension.cs
- SByteConverter.cs
- TextFormattingConverter.cs
- AttachInfo.cs
- RemoveStoryboard.cs
- DataGridViewColumnTypePicker.cs
- DelegatingTypeDescriptionProvider.cs
- TdsValueSetter.cs
- BooleanExpr.cs
- LongSumAggregationOperator.cs
- TextControlDesigner.cs
- ParserExtension.cs
- TextDecorationLocationValidation.cs
- CommandTreeTypeHelper.cs
- DrawingContextDrawingContextWalker.cs
- ImageIndexConverter.cs
- Keyboard.cs
- RowVisual.cs
- XmlElementAttribute.cs