Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ServiceModelExtensionCollectionElement.cs
- ScaleTransform.cs
- AddIn.cs
- QilLoop.cs
- TriState.cs
- CodeBlockBuilder.cs
- ProxyWebPartConnectionCollection.cs
- FactoryRecord.cs
- TraceData.cs
- NavigationEventArgs.cs
- MsmqOutputChannel.cs
- ParserContext.cs
- TextRunCacheImp.cs
- XmlElementAttributes.cs
- FontCacheUtil.cs
- CharacterHit.cs
- EntityDescriptor.cs
- TransformDescriptor.cs
- ConfigurationHelpers.cs
- SubpageParaClient.cs
- FlatButtonAppearance.cs
- TreeNodeClickEventArgs.cs
- WindowsFormsSectionHandler.cs
- XmlElement.cs
- NavigationHelper.cs
- ToolStripGrip.cs
- ProviderException.cs
- DocumentViewerConstants.cs
- TextRangeEdit.cs
- DesignSurfaceCollection.cs
- ElementNotEnabledException.cs
- TreeView.cs
- IPipelineRuntime.cs
- Pool.cs
- DesignerHelpers.cs
- TypeReference.cs
- coordinatorscratchpad.cs
- EmptyElement.cs
- Stackframe.cs
- PrinterResolution.cs
- SamlSubjectStatement.cs
- ParserOptions.cs
- EqualityArray.cs
- Timeline.cs
- XMLSchema.cs
- unsafenativemethodsother.cs
- XmlSchemaException.cs
- ServiceDurableInstance.cs
- EventLogPermissionEntry.cs
- WebBrowserNavigatingEventHandler.cs
- AuthenticationException.cs
- TabControlToolboxItem.cs
- TaskFileService.cs
- Brush.cs
- AlphaSortedEnumConverter.cs
- XmlUTF8TextReader.cs
- CodePageUtils.cs
- Converter.cs
- BamlCollectionHolder.cs
- DriveInfo.cs
- UrlPath.cs
- ObjectAnimationBase.cs
- ReadOnlyAttribute.cs
- ClientCultureInfo.cs
- RequestQueue.cs
- DataPager.cs
- StringReader.cs
- ScriptIgnoreAttribute.cs
- RelationalExpressions.cs
- PublishLicense.cs
- WebPartDisplayModeEventArgs.cs
- Enumerable.cs
- IPEndPoint.cs
- PaintValueEventArgs.cs
- TextSelectionHelper.cs
- ClrPerspective.cs
- RandomNumberGenerator.cs
- UserPreferenceChangedEventArgs.cs
- FontStyles.cs
- Accessible.cs
- PassportIdentity.cs
- Events.cs
- DataObject.cs
- DecoderNLS.cs
- FamilyMap.cs
- ObjectStateManager.cs
- SamlAttribute.cs
- TypedTableBaseExtensions.cs
- FlowLayoutPanel.cs
- CellParagraph.cs
- XmlMtomReader.cs
- SystemInfo.cs
- ImportFileRequest.cs
- TextDecorationCollectionConverter.cs
- Pair.cs
- CuspData.cs
- DebugController.cs
- AnonymousIdentificationSection.cs
- SQLConvert.cs
- SystemColors.cs