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
- Overlapped.cs
- BitmapData.cs
- ImplicitInputBrush.cs
- PasswordBox.cs
- _OverlappedAsyncResult.cs
- String.cs
- WindowsComboBox.cs
- BulletChrome.cs
- KeyTimeConverter.cs
- UpdateCompiler.cs
- Rect3D.cs
- CachedPathData.cs
- InkPresenterAutomationPeer.cs
- RelatedImageListAttribute.cs
- FileEnumerator.cs
- ProfileManager.cs
- ResourceManager.cs
- DataServiceQueryProvider.cs
- ResourceProviderFactory.cs
- LogRecordSequence.cs
- GridViewUpdateEventArgs.cs
- Block.cs
- Int32.cs
- Queue.cs
- BrushValueSerializer.cs
- TypeSystem.cs
- Pointer.cs
- GeneratedView.cs
- DynamicRenderer.cs
- Predicate.cs
- SessionStateUtil.cs
- WindowsSlider.cs
- EmissiveMaterial.cs
- ReferenceEqualityComparer.cs
- TransformerInfoCollection.cs
- UnionCodeGroup.cs
- RoleGroup.cs
- AuthStoreRoleProvider.cs
- GroupStyle.cs
- path.cs
- XmlQueryStaticData.cs
- ResourceContainer.cs
- XmlNodeComparer.cs
- LocalTransaction.cs
- SafeThemeHandle.cs
- Scene3D.cs
- UserControl.cs
- TransformDescriptor.cs
- SessionStateContainer.cs
- DropDownButton.cs
- PanelDesigner.cs
- MenuItem.cs
- SoapObjectReader.cs
- Operator.cs
- XPathBinder.cs
- COM2IVsPerPropertyBrowsingHandler.cs
- BindingWorker.cs
- ReceiveActivityValidator.cs
- HandledEventArgs.cs
- ToolBarPanel.cs
- GridErrorDlg.cs
- DesignerDeviceConfig.cs
- DynamicRenderer.cs
- MetadataImporterQuotas.cs
- ExpressionLexer.cs
- XmlSchemaSimpleTypeUnion.cs
- TransformedBitmap.cs
- DataView.cs
- DefaultValueMapping.cs
- Crypto.cs
- UnsafeNativeMethods.cs
- Rect.cs
- DelayedRegex.cs
- DocumentViewerConstants.cs
- CustomPeerResolverService.cs
- DataViewListener.cs
- Translator.cs
- LoginView.cs
- MonikerUtility.cs
- DataControlFieldHeaderCell.cs
- _ListenerRequestStream.cs
- NetworkCredential.cs
- PrimitiveType.cs
- SamlDelegatingWriter.cs
- InstancePersistenceCommandException.cs
- GridViewCancelEditEventArgs.cs
- ArrayTypeMismatchException.cs
- Number.cs
- MemoryMappedFileSecurity.cs
- ClickablePoint.cs
- FindCriteria.cs
- HtmlInputSubmit.cs
- ContainerActivationHelper.cs
- FileVersionInfo.cs
- ScrollBarAutomationPeer.cs
- MutexSecurity.cs
- ChannelPool.cs
- SparseMemoryStream.cs
- diagnosticsswitches.cs
- InvalidPropValue.cs