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
- XmlNavigatorStack.cs
- BehaviorEditorPart.cs
- RectangleGeometry.cs
- ObfuscationAttribute.cs
- LOSFormatter.cs
- updateconfighost.cs
- ResXResourceReader.cs
- Exceptions.cs
- TextProviderWrapper.cs
- RepeatEnumerable.cs
- IntegerFacetDescriptionElement.cs
- SqlFunctionAttribute.cs
- XmlDeclaration.cs
- AppSettingsSection.cs
- DataGridViewColumnConverter.cs
- OracleInfoMessageEventArgs.cs
- FrameworkTextComposition.cs
- _ContextAwareResult.cs
- XmlSchemaSimpleTypeRestriction.cs
- ThrowHelper.cs
- ClientBuildManagerCallback.cs
- VectorAnimationUsingKeyFrames.cs
- Application.cs
- ClientData.cs
- TextServicesCompartment.cs
- DataGridRelationshipRow.cs
- XmlBinaryWriter.cs
- ConfigurationException.cs
- SplineKeyFrames.cs
- DesignerTextBoxAdapter.cs
- CodeObjectCreateExpression.cs
- SubpageParagraph.cs
- CompiledAction.cs
- UITypeEditor.cs
- ConfigXmlSignificantWhitespace.cs
- PageRanges.cs
- SelectionProcessor.cs
- IdlingCommunicationPool.cs
- XmlSchemaFacet.cs
- DataGridViewToolTip.cs
- WindowsAltTab.cs
- CreateUserErrorEventArgs.cs
- LiteralDesigner.cs
- MetadataPropertyAttribute.cs
- FrameworkElement.cs
- StrongNamePublicKeyBlob.cs
- __ConsoleStream.cs
- APCustomTypeDescriptor.cs
- MemoryFailPoint.cs
- ColumnHeaderConverter.cs
- TrackingMemoryStreamFactory.cs
- PriorityBinding.cs
- Floater.cs
- Util.cs
- DataGridViewCheckBoxCell.cs
- hwndwrapper.cs
- RouteParameter.cs
- DependencyProperty.cs
- WindowsBrush.cs
- ObjectAnimationBase.cs
- DrawingContextDrawingContextWalker.cs
- FormViewUpdateEventArgs.cs
- NamespaceDecl.cs
- ParameterToken.cs
- HandlerFactoryCache.cs
- XmlLoader.cs
- InvokeHandlers.cs
- WSDualHttpSecurity.cs
- DataGridTablesFactory.cs
- ProgressBarRenderer.cs
- MessageQueueKey.cs
- IndexedGlyphRun.cs
- UniqueEventHelper.cs
- FileLogRecordEnumerator.cs
- ErrorStyle.cs
- MediaElement.cs
- Decoder.cs
- TrackingProfile.cs
- AuthenticationModulesSection.cs
- bidPrivateBase.cs
- SamlAudienceRestrictionCondition.cs
- ExecutionContext.cs
- MouseCaptureWithinProperty.cs
- InputReportEventArgs.cs
- NativeCompoundFileAPIs.cs
- EUCJPEncoding.cs
- RegexRunnerFactory.cs
- RuntimeCompatibilityAttribute.cs
- ErrorFormatterPage.cs
- SoapParser.cs
- Properties.cs
- HttpPostedFileWrapper.cs
- _DigestClient.cs
- CodeVariableReferenceExpression.cs
- ExeContext.cs
- SequentialUshortCollection.cs
- TextProperties.cs
- TextBox.cs
- CheckBoxDesigner.cs
- CustomTypeDescriptor.cs