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 / 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
- Command.cs
- DataTableReaderListener.cs
- MetadataWorkspace.cs
- ChannelTerminatedException.cs
- PrimitiveType.cs
- DesignerAdapterUtil.cs
- TextProperties.cs
- UnrecognizedPolicyAssertionElement.cs
- Queue.cs
- Publisher.cs
- ElementAtQueryOperator.cs
- GridViewRowPresenterBase.cs
- ArrayItemReference.cs
- ObjectIDGenerator.cs
- DataGridRow.cs
- ToolStripDropDownClosedEventArgs.cs
- PrivateFontCollection.cs
- HwndSourceKeyboardInputSite.cs
- DbMetaDataColumnNames.cs
- GenericWebPart.cs
- MenuItem.cs
- XmlSchemaParticle.cs
- SqlInternalConnection.cs
- OciEnlistContext.cs
- EnlistmentState.cs
- BufferedWebEventProvider.cs
- WebPartChrome.cs
- XmlSchemas.cs
- XmlCodeExporter.cs
- NavigationHelper.cs
- GridViewEditEventArgs.cs
- HwndSubclass.cs
- HandledMouseEvent.cs
- AccessText.cs
- KeyInfo.cs
- TextSimpleMarkerProperties.cs
- InputEventArgs.cs
- WebGetAttribute.cs
- VirtualDirectoryMappingCollection.cs
- VectorAnimationUsingKeyFrames.cs
- querybuilder.cs
- DBSchemaRow.cs
- CollectionView.cs
- SoapObjectWriter.cs
- SystemIcmpV4Statistics.cs
- SinglePageViewer.cs
- TableLayoutStyle.cs
- DataGridBeginningEditEventArgs.cs
- OAVariantLib.cs
- RegularExpressionValidator.cs
- LateBoundChannelParameterCollection.cs
- PageEventArgs.cs
- ClientApiGenerator.cs
- CheckBoxList.cs
- updateconfighost.cs
- WebServiceBindingAttribute.cs
- KeyPressEvent.cs
- DataTemplateKey.cs
- UidPropertyAttribute.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- ArraySubsetEnumerator.cs
- Encoder.cs
- KeyValueConfigurationCollection.cs
- OdbcConnectionOpen.cs
- CodeAttributeArgument.cs
- SqlXmlStorage.cs
- AlgoModule.cs
- IgnoreSectionHandler.cs
- TextBoxBase.cs
- CompilerGlobalScopeAttribute.cs
- WebPageTraceListener.cs
- WaitHandle.cs
- DesignerValidationSummaryAdapter.cs
- BindingValueChangedEventArgs.cs
- ObjectIDGenerator.cs
- ObjectConverter.cs
- CornerRadiusConverter.cs
- DelegateArgumentValue.cs
- TargetConverter.cs
- TargetConverter.cs
- GroupBoxRenderer.cs
- ToolStripDesignerAvailabilityAttribute.cs
- DataSourceCacheDurationConverter.cs
- RemotingServices.cs
- FontStyles.cs
- XsltConvert.cs
- IIS7WorkerRequest.cs
- JapaneseLunisolarCalendar.cs
- BevelBitmapEffect.cs
- UpDownEvent.cs
- DrawingContextWalker.cs
- ServiceRouteHandler.cs
- HtmlPanelAdapter.cs
- ComponentManagerBroker.cs
- DataSet.cs
- Registry.cs
- RegistryKey.cs
- SpoolingTaskBase.cs
- WebPartManagerInternals.cs
- unsafenativemethodstextservices.cs