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
- NodeLabelEditEvent.cs
- GeneratedContractType.cs
- DataGridViewButtonColumn.cs
- GlobalEventManager.cs
- RelationshipConverter.cs
- CodeMemberEvent.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- LinearKeyFrames.cs
- FormViewModeEventArgs.cs
- DateTimePicker.cs
- BitmapEffectDrawingContent.cs
- TreeNodeBindingCollection.cs
- MatrixTransform.cs
- XPathArrayIterator.cs
- ReadOnlyTernaryTree.cs
- InternalConfigEventArgs.cs
- PriorityBinding.cs
- LinkedResource.cs
- SettingsProperty.cs
- ThrowHelper.cs
- WindowsSysHeader.cs
- OleDbErrorCollection.cs
- NegotiateStream.cs
- ImageSourceValueSerializer.cs
- HelpProvider.cs
- TableHeaderCell.cs
- CleanUpVirtualizedItemEventArgs.cs
- BamlBinaryWriter.cs
- PlacementWorkspace.cs
- EntityDataSourceViewSchema.cs
- ObservableCollection.cs
- OlePropertyStructs.cs
- InitializingNewItemEventArgs.cs
- CatalogPartChrome.cs
- MouseButtonEventArgs.cs
- UpdatePanel.cs
- ContentOnlyMessage.cs
- PerformanceCounterManager.cs
- RenderingBiasValidation.cs
- SoapFormatterSinks.cs
- XmlException.cs
- HttpApplication.cs
- RuleConditionDialog.cs
- XPathNodeHelper.cs
- DataGridClipboardHelper.cs
- Win32SafeHandles.cs
- DesignTableCollection.cs
- TypeSource.cs
- ErasingStroke.cs
- RenderingEventArgs.cs
- MemoryPressure.cs
- ipaddressinformationcollection.cs
- ScopelessEnumAttribute.cs
- TdsValueSetter.cs
- TableChangeProcessor.cs
- OperationResponse.cs
- SymmetricAlgorithm.cs
- HtmlFormWrapper.cs
- InsufficientMemoryException.cs
- DataTableMapping.cs
- ChangesetResponse.cs
- BinaryUtilClasses.cs
- ValidationPropertyAttribute.cs
- BaseInfoTable.cs
- XmlDownloadManager.cs
- IdentitySection.cs
- ColumnWidthChangedEvent.cs
- DataGridViewCellLinkedList.cs
- ExpressionStringBuilder.cs
- StickyNoteAnnotations.cs
- RijndaelManaged.cs
- DynamicEntity.cs
- ADMembershipProvider.cs
- basevalidator.cs
- OdbcCommandBuilder.cs
- ConnectionConsumerAttribute.cs
- Fx.cs
- SessionStateModule.cs
- SettingsPropertyCollection.cs
- ContractInferenceHelper.cs
- InfoCardTraceRecord.cs
- ConditionCollection.cs
- LocatorPart.cs
- ModuleConfigurationInfo.cs
- HostingEnvironment.cs
- UserPersonalizationStateInfo.cs
- CharConverter.cs
- Regex.cs
- HelpKeywordAttribute.cs
- WsrmMessageInfo.cs
- Color.cs
- ButtonBase.cs
- parserscommon.cs
- ToolStripContentPanel.cs
- JournalEntryListConverter.cs
- ActivityBuilderHelper.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- WebException.cs
- Wildcard.cs
- ExpressionBindingCollection.cs