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 / BitmapEffectDrawingContextState.cs / 1 / BitmapEffectDrawingContextState.cs
//---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // File: BitmapEffectDrawingContextState.cs // // Description: This file contains the implementation of BitmapEffectDrawingContextState. // This renders a drawing visual using the BitmapVisualManager // // History: // 07/25/2005 : [....] - Created it. // //--------------------------------------------------------------------------- using System; using System.Windows.Threading; using MS.Win32; using System.Security; using System.Security.Permissions; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Media.Imaging; using System.Diagnostics; using System.Collections; using System.Collections.Generic; using MS.Internal; using System.Resources; using MS.Utility; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; using SR = MS.Internal.PresentationCore.SR; using SRID = MS.Internal.PresentationCore.SRID; namespace System.Windows.Media.Effects { internal class BitmapEffectDrawingContextState : BitmapEffectState { public DrawingContext Context { get { return _visualCtx; } } public BitmapEffectDrawingContextState(BitmapEffect effect, BitmapEffectInput effectInput) { _bitmapEffect = effect; _bitmapEffectInput = effectInput; _visual = new DrawingVisual(); _visualCtx = _visual.RenderOpen(); } ////// Render the drawing visual, apply the effect to it, and update the world /// transform /// /// /// ///internal BitmapSource RenderBitmapEffect(ref Matrix worldTransform, Rect windowClip) { if (_bitmapEffectInput == null) { _bitmapEffectInput = new BitmapEffectInput(); } RenderTargetBitmap renderTarget = null; return GetEffectOutput(_visual, ref renderTarget, worldTransform, windowClip, out worldTransform); } #region Private Fields DrawingVisual _visual; DrawingContext _visualCtx; #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------------------- // // Copyright (c) Microsoft Corporation. All rights reserved. // // File: BitmapEffectDrawingContextState.cs // // Description: This file contains the implementation of BitmapEffectDrawingContextState. // This renders a drawing visual using the BitmapVisualManager // // History: // 07/25/2005 : [....] - Created it. // //--------------------------------------------------------------------------- using System; using System.Windows.Threading; using MS.Win32; using System.Security; using System.Security.Permissions; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using System.Windows.Media.Imaging; using System.Diagnostics; using System.Collections; using System.Collections.Generic; using MS.Internal; using System.Resources; using MS.Utility; using System.Runtime.InteropServices; using MS.Internal.PresentationCore; using SR = MS.Internal.PresentationCore.SR; using SRID = MS.Internal.PresentationCore.SRID; namespace System.Windows.Media.Effects { internal class BitmapEffectDrawingContextState : BitmapEffectState { public DrawingContext Context { get { return _visualCtx; } } public BitmapEffectDrawingContextState(BitmapEffect effect, BitmapEffectInput effectInput) { _bitmapEffect = effect; _bitmapEffectInput = effectInput; _visual = new DrawingVisual(); _visualCtx = _visual.RenderOpen(); } /// /// Render the drawing visual, apply the effect to it, and update the world /// transform /// /// /// ///internal BitmapSource RenderBitmapEffect(ref Matrix worldTransform, Rect windowClip) { if (_bitmapEffectInput == null) { _bitmapEffectInput = new BitmapEffectInput(); } RenderTargetBitmap renderTarget = null; return GetEffectOutput(_visual, ref renderTarget, worldTransform, windowClip, out worldTransform); } #region Private Fields DrawingVisual _visual; DrawingContext _visualCtx; #endregion } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- InfiniteTimeSpanConverter.cs
- sqlpipe.cs
- MasterPageBuildProvider.cs
- SpotLight.cs
- ControlBuilder.cs
- EntityContainer.cs
- VariableQuery.cs
- HttpResponse.cs
- DiagnosticsConfigurationHandler.cs
- safex509handles.cs
- ReferenceEqualityComparer.cs
- ListBoxDesigner.cs
- MultiView.cs
- ResourceReferenceKeyNotFoundException.cs
- StorageFunctionMapping.cs
- XmlSignatureProperties.cs
- RegisteredDisposeScript.cs
- SessionPageStateSection.cs
- ConsumerConnectionPointCollection.cs
- DetailsViewDeletedEventArgs.cs
- NamespaceInfo.cs
- HttpResponse.cs
- TrackBarRenderer.cs
- CancellationHandlerDesigner.cs
- RowsCopiedEventArgs.cs
- MediaElementAutomationPeer.cs
- LongPath.cs
- ViewManager.cs
- WsdlWriter.cs
- Attributes.cs
- Lease.cs
- Parsers.cs
- ProcessStartInfo.cs
- MultiAsyncResult.cs
- PasswordPropertyTextAttribute.cs
- PropertySegmentSerializer.cs
- HandlerWithFactory.cs
- RtfToXamlLexer.cs
- AstTree.cs
- SiteIdentityPermission.cs
- xml.cs
- SqlCacheDependencyDatabase.cs
- ContentPresenter.cs
- MarshalDirectiveException.cs
- PageClientProxyGenerator.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- Attributes.cs
- PolicyUnit.cs
- DbMetaDataCollectionNames.cs
- ObjectStateManagerMetadata.cs
- AccessText.cs
- DecoderNLS.cs
- XmlSerializationReader.cs
- XslTransform.cs
- Panel.cs
- TextTreeDeleteContentUndoUnit.cs
- FunctionDefinition.cs
- entityreference_tresulttype.cs
- CodeCatchClause.cs
- WorkflowRuntimeServiceElementCollection.cs
- StrongName.cs
- TextDecorationLocationValidation.cs
- HashAlgorithm.cs
- Stackframe.cs
- OutputBuffer.cs
- FontFamily.cs
- BorderGapMaskConverter.cs
- ConfigurationHandlersInstallComponent.cs
- DataGridViewButtonColumn.cs
- DataContractJsonSerializer.cs
- DrawingGroup.cs
- PriorityItem.cs
- NamespaceList.cs
- LoadedOrUnloadedOperation.cs
- CreateParams.cs
- TeredoHelper.cs
- BrushValueSerializer.cs
- TemplatePropertyEntry.cs
- GeometryModel3D.cs
- SqlCacheDependency.cs
- ApplicationTrust.cs
- BamlLocalizabilityResolver.cs
- StrokeRenderer.cs
- DataGridViewCellLinkedList.cs
- HeaderUtility.cs
- RoleManagerSection.cs
- ToolStripSplitButton.cs
- EdmPropertyAttribute.cs
- ProcessModuleCollection.cs
- EnumMember.cs
- DesignSurface.cs
- WebServiceClientProxyGenerator.cs
- XmlSerializerFactory.cs
- FormatSettings.cs
- ScrollViewerAutomationPeer.cs
- DocumentSequence.cs
- BoolExpression.cs
- SegmentInfo.cs
- MulticastDelegate.cs
- SecurityContextSecurityTokenAuthenticator.cs