Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- CalculatedColumn.cs
- WinFormsUtils.cs
- QueryableFilterRepeater.cs
- InProcStateClientManager.cs
- WebPartZoneDesigner.cs
- CallbackDebugBehavior.cs
- DeobfuscatingStream.cs
- ComboBox.cs
- UInt16.cs
- GlyphElement.cs
- ContextStack.cs
- DataGridViewRowStateChangedEventArgs.cs
- Control.cs
- BuildDependencySet.cs
- BitmapImage.cs
- GridViewDeletedEventArgs.cs
- ObjectItemCollection.cs
- DataGridTextBox.cs
- MultiAsyncResult.cs
- NavigationHelper.cs
- ProcessModelSection.cs
- Module.cs
- DtdParser.cs
- XpsPackagingException.cs
- DbXmlEnabledProviderManifest.cs
- PathFigureCollection.cs
- odbcmetadatafactory.cs
- OverloadGroupAttribute.cs
- XmlDataSource.cs
- DefaultIfEmptyQueryOperator.cs
- WebPartVerb.cs
- PrintPreviewControl.cs
- InfoCardAsymmetricCrypto.cs
- StrokeRenderer.cs
- SqlDuplicator.cs
- TransformPatternIdentifiers.cs
- DataRow.cs
- BinaryMethodMessage.cs
- HtmlTableRowCollection.cs
- DrawingVisual.cs
- ValidationRuleCollection.cs
- ScrollableControlDesigner.cs
- PolyBezierSegmentFigureLogic.cs
- WebMessageBodyStyleHelper.cs
- RemoteWebConfigurationHostStream.cs
- FontInfo.cs
- MenuScrollingVisibilityConverter.cs
- ProtocolsConfiguration.cs
- EditorReuseAttribute.cs
- MachineKeySection.cs
- DecoderReplacementFallback.cs
- DWriteFactory.cs
- AssemblySettingAttributes.cs
- PackageDigitalSignature.cs
- QualifiedCellIdBoolean.cs
- DataGridViewCellParsingEventArgs.cs
- Renderer.cs
- ClientCultureInfo.cs
- MediaPlayerState.cs
- MemoryStream.cs
- Int32.cs
- AuthenticatingEventArgs.cs
- TreeView.cs
- BindingExpression.cs
- WebPartTransformerCollection.cs
- TextTreeTextNode.cs
- InvokeMethod.cs
- DebugView.cs
- InputGestureCollection.cs
- IndicCharClassifier.cs
- TextBoxAutoCompleteSourceConverter.cs
- PolicyLevel.cs
- FileDialog_Vista.cs
- Helper.cs
- RC2.cs
- Rect3D.cs
- sitestring.cs
- WmiEventSink.cs
- MappingModelBuildProvider.cs
- KeyBinding.cs
- StylesEditorDialog.cs
- ExtensionDataObject.cs
- QuarticEase.cs
- KnownBoxes.cs
- NamespaceEmitter.cs
- XamlPathDataSerializer.cs
- StickyNoteHelper.cs
- FixedBufferAttribute.cs
- SQlBooleanStorage.cs
- FunctionNode.cs
- SemaphoreFullException.cs
- ThreadStateException.cs
- TimeSpanSecondsConverter.cs
- AttributeProviderAttribute.cs
- FlowLayoutSettings.cs
- CodeGenerator.cs
- SqlDataSourceConfigureSortForm.cs
- KeyedCollection.cs
- BamlLocalizableResource.cs
- MulticastNotSupportedException.cs