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
- UserInitiatedNavigationPermission.cs
- ContentPosition.cs
- Part.cs
- CalendarBlackoutDatesCollection.cs
- MemoryFailPoint.cs
- WebRequestModuleElement.cs
- StrokeCollection2.cs
- ProfileInfo.cs
- ResourcePart.cs
- PeerApplication.cs
- UnsafeNativeMethods.cs
- Stack.cs
- MsmqHostedTransportManager.cs
- ExtractedStateEntry.cs
- ClientType.cs
- WeakReadOnlyCollection.cs
- SmtpNetworkElement.cs
- ItemsPresenter.cs
- DesignerUtils.cs
- ListChunk.cs
- RichTextBox.cs
- AtomEntry.cs
- DefaultPrintController.cs
- ObjectSecurity.cs
- ParameterToken.cs
- WinEventWrap.cs
- TypeDescriptionProviderAttribute.cs
- WebHttpBehavior.cs
- Message.cs
- HashStream.cs
- ConstantSlot.cs
- TaskFileService.cs
- BulletedList.cs
- DynamicILGenerator.cs
- ZoomingMessageFilter.cs
- SqlRewriteScalarSubqueries.cs
- ImageSource.cs
- RelatedCurrencyManager.cs
- ToolStripArrowRenderEventArgs.cs
- XmlWhitespace.cs
- ResolveResponseInfo.cs
- ConnectionStringsExpressionBuilder.cs
- SystemIPAddressInformation.cs
- UrlMappingCollection.cs
- Propagator.ExtentPlaceholderCreator.cs
- TreeNodeStyleCollection.cs
- EventLogRecord.cs
- SqlRemoveConstantOrderBy.cs
- SmiContextFactory.cs
- WpfSharedXamlSchemaContext.cs
- TitleStyle.cs
- UriTemplateLiteralPathSegment.cs
- PasswordRecovery.cs
- ChannelCacheSettings.cs
- Panel.cs
- RequestTimeoutManager.cs
- MimeTypeAttribute.cs
- VirtualizedContainerService.cs
- AutoCompleteStringCollection.cs
- LogSwitch.cs
- SecurityException.cs
- ContentElement.cs
- SqlCacheDependency.cs
- SearchExpression.cs
- LineVisual.cs
- Transform.cs
- _TransmitFileOverlappedAsyncResult.cs
- ActiveXHost.cs
- NativeMethods.cs
- LinkButton.cs
- BaseDataBoundControl.cs
- MessageSmuggler.cs
- HttpListenerRequest.cs
- InputBinding.cs
- UmAlQuraCalendar.cs
- ActiveXMessageFormatter.cs
- SetIterators.cs
- CheckBox.cs
- AnnotationHighlightLayer.cs
- ListViewDataItem.cs
- JumpItem.cs
- ColumnResult.cs
- EventHandlersDesigner.cs
- DataGridViewCellConverter.cs
- MetadataException.cs
- EntityConnectionStringBuilder.cs
- XmlTextReader.cs
- WebPartDeleteVerb.cs
- RSACryptoServiceProvider.cs
- DataGridAutoFormat.cs
- CodeMemberField.cs
- InternalConfigRoot.cs
- handlecollector.cs
- TextTreeTextNode.cs
- ApplicationInterop.cs
- documentsequencetextview.cs
- ReadWriteSpinLock.cs
- EditCommandColumn.cs
- SoapConverter.cs
- PageVisual.cs