Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / Effects / BitmapEffectInputConnector.cs / 1 / BitmapEffectInputConnector.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2005 // // File: BitmapEffectInputConnector.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.Security; namespace System.Windows.Media.Effects { ////// BitmapEffectInputConnector /// internal class BitmapEffectInputConnector { SafeMILHandle /*IMILBitmapEffectInputConnector*/ connector; internal BitmapEffectInputConnector(SafeMILHandle nativeConnector) { Debug.Assert(nativeConnector != null); connector = nativeConnector; } #if never internal SafeMILHandle NativeConnectorSafeHandle { get { return connector; } } ////// Return true if the connector is connected. /// public bool IsConnected { get { Debug.Assert(connector != null); bool fConnected = false; HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectInputConnector.IsConnected(connector, out fConnected)); return fConnected; } } ////// Returns the output connector /// public BitmapEffectOutputConnector OutputConnector { get { if (IsConnected == false) throw new Exception("The input is not connected"); SafeMILHandle connection; HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectInputConnector.GetConnection(connector, out connection)); return new BitmapEffectOutputConnector(connection); } } #endif ////// Performs the connection /// /// the output to connect to public void ConnectTo(BitmapEffectOutputConnector output) { HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectInputConnector.ConnectTo(connector, output.NativeConnectorSafeHandle)); } } } // 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: BitmapEffectInputConnector.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.Security; namespace System.Windows.Media.Effects { ////// BitmapEffectInputConnector /// internal class BitmapEffectInputConnector { SafeMILHandle /*IMILBitmapEffectInputConnector*/ connector; internal BitmapEffectInputConnector(SafeMILHandle nativeConnector) { Debug.Assert(nativeConnector != null); connector = nativeConnector; } #if never internal SafeMILHandle NativeConnectorSafeHandle { get { return connector; } } ////// Return true if the connector is connected. /// public bool IsConnected { get { Debug.Assert(connector != null); bool fConnected = false; HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectInputConnector.IsConnected(connector, out fConnected)); return fConnected; } } ////// Returns the output connector /// public BitmapEffectOutputConnector OutputConnector { get { if (IsConnected == false) throw new Exception("The input is not connected"); SafeMILHandle connection; HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectInputConnector.GetConnection(connector, out connection)); return new BitmapEffectOutputConnector(connection); } } #endif ////// Performs the connection /// /// the output to connect to public void ConnectTo(BitmapEffectOutputConnector output) { HRESULT.Check(MS.Win32.PresentationCore.UnsafeNativeMethods.IMILBitmapEffectInputConnector.ConnectTo(connector, output.NativeConnectorSafeHandle)); } } } // 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
- WebPageTraceListener.cs
- BitmapVisualManager.cs
- BaseTemplateBuildProvider.cs
- CachedResourceDictionaryExtension.cs
- xmlformatgeneratorstatics.cs
- Rfc2898DeriveBytes.cs
- XmlBinaryWriter.cs
- precedingquery.cs
- DependencyPropertyDescriptor.cs
- FrameworkRichTextComposition.cs
- securitycriticaldata.cs
- KnownBoxes.cs
- StackOverflowException.cs
- NewItemsContextMenuStrip.cs
- TrackingParameters.cs
- SqlIdentifier.cs
- TypeDependencyAttribute.cs
- RotateTransform3D.cs
- BindValidator.cs
- ParserContext.cs
- DataBoundControlHelper.cs
- RightsManagementPermission.cs
- SafePEFileHandle.cs
- Span.cs
- NavigatingCancelEventArgs.cs
- GifBitmapEncoder.cs
- CodeTypeOfExpression.cs
- XsdSchemaFileEditor.cs
- AsyncOperationManager.cs
- ButtonChrome.cs
- BooleanFacetDescriptionElement.cs
- PlainXmlSerializer.cs
- SeverityFilter.cs
- SqlParameterizer.cs
- ProxySimple.cs
- DBAsyncResult.cs
- Atom10FormatterFactory.cs
- DisplayNameAttribute.cs
- AsymmetricSignatureDeformatter.cs
- SqlRowUpdatingEvent.cs
- ValueProviderWrapper.cs
- IOThreadScheduler.cs
- TableLayoutCellPaintEventArgs.cs
- Win32.cs
- Brush.cs
- RtfControls.cs
- Image.cs
- followingsibling.cs
- MessageQueueTransaction.cs
- PKCS1MaskGenerationMethod.cs
- MessageQueue.cs
- FixedHyperLink.cs
- ContractNamespaceAttribute.cs
- KeyGesture.cs
- GeometryConverter.cs
- ResetableIterator.cs
- BaseValidator.cs
- BinarySerializer.cs
- DrawingCollection.cs
- Walker.cs
- ButtonColumn.cs
- RegexGroup.cs
- XPathDescendantIterator.cs
- _ScatterGatherBuffers.cs
- HttpVersion.cs
- SubpageParagraph.cs
- HttpRequestCacheValidator.cs
- ReadOnlyCollection.cs
- XamlStackWriter.cs
- DataGridTextBox.cs
- RequestResizeEvent.cs
- ConfigXmlSignificantWhitespace.cs
- Canvas.cs
- Point.cs
- ScrollViewerAutomationPeer.cs
- QueuePathEditor.cs
- WhitespaceReader.cs
- ToolboxDataAttribute.cs
- SiteMapProvider.cs
- SecurityKeyIdentifier.cs
- PolicyConversionContext.cs
- SplitterPanelDesigner.cs
- SafeIUnknown.cs
- WebPartCloseVerb.cs
- NegatedCellConstant.cs
- ContentValidator.cs
- EntryPointNotFoundException.cs
- DBNull.cs
- StaticDataManager.cs
- AmbientValueAttribute.cs
- ServerValidateEventArgs.cs
- XmlSiteMapProvider.cs
- FormatPage.cs
- LinqDataSourceStatusEventArgs.cs
- x509store.cs
- SafeWaitHandle.cs
- DataGridViewRow.cs
- ObjectResult.cs
- QueueProcessor.cs
- WindowsTreeView.cs