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
- TimelineClockCollection.cs
- SafeRightsManagementHandle.cs
- CompiledRegexRunner.cs
- DoWorkEventArgs.cs
- IPHostEntry.cs
- DateTimeOffsetStorage.cs
- TransportOutputChannel.cs
- ObservableCollection.cs
- WsatConfiguration.cs
- Run.cs
- DataMemberFieldConverter.cs
- UInt32.cs
- LongTypeConverter.cs
- AssertFilter.cs
- HttpValueCollection.cs
- WebPartTracker.cs
- FontWeightConverter.cs
- TemplateControlParser.cs
- TableLayoutStyleCollection.cs
- Composition.cs
- OrderByBuilder.cs
- AsyncWaitHandle.cs
- ByteAnimationBase.cs
- EnumBuilder.cs
- FixedSOMTextRun.cs
- CodeNamespaceImportCollection.cs
- TakeQueryOptionExpression.cs
- ClientTarget.cs
- AsyncPostBackErrorEventArgs.cs
- CollectionCodeDomSerializer.cs
- DataView.cs
- ForeignConstraint.cs
- StylusEventArgs.cs
- Clause.cs
- MD5HashHelper.cs
- TreeBuilderXamlTranslator.cs
- KnownBoxes.cs
- TextBoxView.cs
- RuleInfoComparer.cs
- ConfigurationManagerInternalFactory.cs
- InertiaTranslationBehavior.cs
- ProviderBase.cs
- MDIClient.cs
- httpserverutility.cs
- ValidationErrorCollection.cs
- HyperLinkColumn.cs
- PostBackTrigger.cs
- IgnoreSectionHandler.cs
- autovalidator.cs
- IDQuery.cs
- QilXmlWriter.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- TypeListConverter.cs
- NetNamedPipeSecurityElement.cs
- PopupEventArgs.cs
- UnionExpr.cs
- WindowsListViewItemStartMenu.cs
- SimpleNameService.cs
- DispatcherOperation.cs
- PeerNearMe.cs
- TimerElapsedEvenArgs.cs
- ReadOnlyHierarchicalDataSource.cs
- LinearKeyFrames.cs
- DataException.cs
- XmlObjectSerializerReadContext.cs
- AnnotationAdorner.cs
- RoleManagerModule.cs
- SqlParameter.cs
- ObjectQuery_EntitySqlExtensions.cs
- SettingsSavedEventArgs.cs
- MembershipUser.cs
- LinearKeyFrames.cs
- EncodingDataItem.cs
- SmtpNtlmAuthenticationModule.cs
- InfoCardCryptoHelper.cs
- RangeValuePattern.cs
- Timer.cs
- CodeAttachEventStatement.cs
- StrongNamePublicKeyBlob.cs
- DiscoveryClientOutputChannel.cs
- XmlCodeExporter.cs
- DocumentViewerBaseAutomationPeer.cs
- DBCommandBuilder.cs
- DataException.cs
- Tool.cs
- DataServiceEntityAttribute.cs
- GeometryDrawing.cs
- Predicate.cs
- SignatureDescription.cs
- CalculatedColumn.cs
- DetailsViewDeleteEventArgs.cs
- GlobalizationAssembly.cs
- TargetParameterCountException.cs
- ProgressBar.cs
- DispatcherExceptionFilterEventArgs.cs
- Vector3DCollectionConverter.cs
- SafeNativeMemoryHandle.cs
- TimeSpanValidator.cs
- XmlTextAttribute.cs
- WebMessageEncodingElement.cs