Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- X509SubjectKeyIdentifierClause.cs
- Buffer.cs
- Figure.cs
- VirtualPathUtility.cs
- DefaultTraceListener.cs
- _ScatterGatherBuffers.cs
- DBSqlParserTableCollection.cs
- Point3DCollectionConverter.cs
- StringStorage.cs
- InvalidCastException.cs
- DataGridViewRowsRemovedEventArgs.cs
- SafeNativeMethods.cs
- CacheAxisQuery.cs
- PropertyCollection.cs
- CodeArgumentReferenceExpression.cs
- CorrelationManager.cs
- Touch.cs
- HandledEventArgs.cs
- CapabilitiesAssignment.cs
- MemoryMappedViewAccessor.cs
- TypeUsageBuilder.cs
- UnauthorizedAccessException.cs
- DrawingContextDrawingContextWalker.cs
- TimersDescriptionAttribute.cs
- Claim.cs
- BitmapData.cs
- XmlArrayItemAttribute.cs
- Opcode.cs
- WebBrowser.cs
- HtmlInputText.cs
- XPathNodeHelper.cs
- CodeDomSerializationProvider.cs
- IgnoreDeviceFilterElement.cs
- FileIOPermission.cs
- GenericQueueSurrogate.cs
- TypeBuilder.cs
- BinaryNode.cs
- WebPartVerbsEventArgs.cs
- ProviderCollection.cs
- CodeDomDesignerLoader.cs
- GridViewCancelEditEventArgs.cs
- RightsManagementLicense.cs
- LockRecursionException.cs
- NullableConverter.cs
- HwndSourceKeyboardInputSite.cs
- ErrorInfoXmlDocument.cs
- Int16.cs
- DeclarativeCatalogPart.cs
- SqlDataSource.cs
- ThreadAttributes.cs
- Rotation3DKeyFrameCollection.cs
- DynamicPropertyHolder.cs
- WindowsUpDown.cs
- FlowLayoutSettings.cs
- ConsoleCancelEventArgs.cs
- ToolStripSeparator.cs
- RootProfilePropertySettingsCollection.cs
- DataRelationPropertyDescriptor.cs
- OracleParameter.cs
- EntityDescriptor.cs
- IISUnsafeMethods.cs
- SetterTriggerConditionValueConverter.cs
- HttpConfigurationContext.cs
- SiteMapPath.cs
- SQLChars.cs
- StandardRuntimeEnumValidatorAttribute.cs
- ColorAnimationUsingKeyFrames.cs
- Section.cs
- XmlAttributeCollection.cs
- PersianCalendar.cs
- UserControlParser.cs
- WindowsPen.cs
- DataServiceHostFactory.cs
- Parallel.cs
- HierarchicalDataTemplate.cs
- DesignerOptionService.cs
- CalendarDay.cs
- ComplexPropertyEntry.cs
- ContextMenuAutomationPeer.cs
- NetworkAddressChange.cs
- OleDbReferenceCollection.cs
- StateValidator.cs
- TrackingExtract.cs
- DataBindingCollection.cs
- GeometryModel3D.cs
- ThreadExceptionDialog.cs
- NameSpaceExtractor.cs
- LinearGradientBrush.cs
- securitycriticaldataClass.cs
- CRYPTPROTECT_PROMPTSTRUCT.cs
- IEnumerable.cs
- UpDownEvent.cs
- HtmlEmptyTagControlBuilder.cs
- DataGridItem.cs
- TemplateControlParser.cs
- SQLByte.cs
- InvalidFilterCriteriaException.cs
- NullPackagingPolicy.cs
- DocumentPageView.cs
- Control.cs