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
- BrowserDefinitionCollection.cs
- ToolStripDropDownMenu.cs
- HttpCachePolicy.cs
- DrawingGroup.cs
- formatstringdialog.cs
- CollectionBuilder.cs
- IntermediatePolicyValidator.cs
- XslAst.cs
- GroupItemAutomationPeer.cs
- DataMemberFieldConverter.cs
- ControlDesignerState.cs
- ComponentDispatcherThread.cs
- cookieexception.cs
- Popup.cs
- DataGridCommandEventArgs.cs
- XPathNodeIterator.cs
- FunctionParameter.cs
- MetaChildrenColumn.cs
- TypeLibConverter.cs
- WebConfigurationHost.cs
- VectorCollectionValueSerializer.cs
- SqlStatistics.cs
- Figure.cs
- HierarchicalDataSourceDesigner.cs
- CalendarKeyboardHelper.cs
- EventLogReader.cs
- XPathDocumentIterator.cs
- PropertyGridCommands.cs
- COM2ExtendedTypeConverter.cs
- ListChunk.cs
- objectresult_tresulttype.cs
- GroupLabel.cs
- shaperfactory.cs
- EdmItemError.cs
- TimelineGroup.cs
- OdbcCommandBuilder.cs
- TextEditor.cs
- DataControlImageButton.cs
- SqlBuilder.cs
- GradientSpreadMethodValidation.cs
- IRCollection.cs
- LineBreakRecord.cs
- SHA1Managed.cs
- FontUnit.cs
- ExpressionNode.cs
- UpDownBaseDesigner.cs
- DataContractJsonSerializer.cs
- IdentitySection.cs
- ToolBarButtonClickEvent.cs
- WebPartsPersonalization.cs
- Metafile.cs
- SimpleFieldTemplateUserControl.cs
- DictionaryMarkupSerializer.cs
- MSAANativeProvider.cs
- MultiPageTextView.cs
- DurationConverter.cs
- DataService.cs
- SqlClientFactory.cs
- LocalValueEnumerator.cs
- WebPartDeleteVerb.cs
- List.cs
- TransactionManager.cs
- SeekStoryboard.cs
- DataKeyArray.cs
- EdmTypeAttribute.cs
- SoundPlayerAction.cs
- StringStorage.cs
- MaskDesignerDialog.cs
- StreamSecurityUpgradeAcceptorBase.cs
- TemplateModeChangedEventArgs.cs
- AddInDeploymentState.cs
- WebDescriptionAttribute.cs
- BehaviorEditorPart.cs
- ManagementNamedValueCollection.cs
- PrintControllerWithStatusDialog.cs
- ServerValidateEventArgs.cs
- PropertyTabAttribute.cs
- SystemResourceKey.cs
- BuildProvider.cs
- Gdiplus.cs
- ExtensionSurface.cs
- HeaderElement.cs
- TaskScheduler.cs
- ToolStripArrowRenderEventArgs.cs
- XmlCustomFormatter.cs
- TextOutput.cs
- ThreadSafeList.cs
- Brush.cs
- ClientSettingsStore.cs
- AuditLog.cs
- LinearGradientBrush.cs
- IProducerConsumerCollection.cs
- XhtmlBasicLabelAdapter.cs
- TranslateTransform.cs
- SHA1CryptoServiceProvider.cs
- Journaling.cs
- VScrollProperties.cs
- SqlLiftWhereClauses.cs
- AnnotationComponentChooser.cs
- TypeGeneratedEventArgs.cs