Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PenThreadWorker.cs
- SizeKeyFrameCollection.cs
- DoubleConverter.cs
- LayeredChannelListener.cs
- CriticalHandle.cs
- ActivitySurrogateSelector.cs
- Regex.cs
- DictionaryBase.cs
- XamlTreeBuilderBamlRecordWriter.cs
- PeerNameResolver.cs
- _ProxyRegBlob.cs
- RSAPKCS1KeyExchangeFormatter.cs
- TextAnchor.cs
- MultiDataTrigger.cs
- DataGridViewSelectedRowCollection.cs
- Button.cs
- CanonicalFormWriter.cs
- NativeMethods.cs
- GetResponse.cs
- SimpleWorkerRequest.cs
- MemberPathMap.cs
- securitymgrsite.cs
- WindowsSpinner.cs
- SortedDictionary.cs
- Int16Storage.cs
- TypeValidationEventArgs.cs
- FirstMatchCodeGroup.cs
- ColumnReorderedEventArgs.cs
- ValidationRule.cs
- XamlInterfaces.cs
- DelegateCompletionCallbackWrapper.cs
- RunClient.cs
- EventMap.cs
- DbModificationClause.cs
- CollectionDataContractAttribute.cs
- HandlerFactoryWrapper.cs
- XsdCachingReader.cs
- ServiceContractListItemList.cs
- LiteralControl.cs
- PersonalizableAttribute.cs
- RequestCachePolicy.cs
- DataGridAddNewRow.cs
- RemoteWebConfigurationHost.cs
- ADConnectionHelper.cs
- TextWriterTraceListener.cs
- AnnotationDocumentPaginator.cs
- COM2ExtendedTypeConverter.cs
- MappedMetaModel.cs
- DCSafeHandle.cs
- KeyEvent.cs
- NullableLongMinMaxAggregationOperator.cs
- ApplicationFileParser.cs
- CTreeGenerator.cs
- RepeatButtonAutomationPeer.cs
- MetadataWorkspace.cs
- WeakRefEnumerator.cs
- Symbol.cs
- HistoryEventArgs.cs
- XPathMultyIterator.cs
- ToolStripItemEventArgs.cs
- ButtonChrome.cs
- DbSetClause.cs
- BlobPersonalizationState.cs
- HashRepartitionStream.cs
- SizeChangedInfo.cs
- RectangleF.cs
- StrokeNodeData.cs
- DbExpressionVisitor_TResultType.cs
- EmptyStringExpandableObjectConverter.cs
- ProcessHostMapPath.cs
- CqlParserHelpers.cs
- BaseCAMarshaler.cs
- ComplexTypeEmitter.cs
- TreeNodeSelectionProcessor.cs
- Set.cs
- SqlDataSourceConfigureFilterForm.cs
- AuthStoreRoleProvider.cs
- ActivityExecutorOperation.cs
- TreeNode.cs
- TextAdaptor.cs
- XmlSchemaException.cs
- EmbeddedMailObjectsCollection.cs
- DataBindingHandlerAttribute.cs
- PersonalizableTypeEntry.cs
- DataGridViewRowDividerDoubleClickEventArgs.cs
- TextTreeUndoUnit.cs
- Exceptions.cs
- WebPartTracker.cs
- BezierSegment.cs
- FormViewInsertedEventArgs.cs
- HttpCachePolicyElement.cs
- UriParserTemplates.cs
- HScrollProperties.cs
- QueryBranchOp.cs
- BatchWriter.cs
- AppSecurityManager.cs
- NestPullup.cs
- IndexedGlyphRun.cs
- PasswordRecoveryDesigner.cs
- InfoCardUIAgent.cs