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 / 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
- EndOfStreamException.cs
- IconConverter.cs
- InvokeMemberBinder.cs
- XmlBoundElement.cs
- SubtreeProcessor.cs
- XPathMessageFilterTable.cs
- SimpleFieldTemplateFactory.cs
- ExpressionHelper.cs
- GridViewRow.cs
- AnimatedTypeHelpers.cs
- WebHeaderCollection.cs
- StyleHelper.cs
- IRCollection.cs
- HtmlInputText.cs
- Interfaces.cs
- MasterPageCodeDomTreeGenerator.cs
- XPathNodeIterator.cs
- TypeUtils.cs
- GeometryDrawing.cs
- ProviderUtil.cs
- PropertyBuilder.cs
- Pair.cs
- VideoDrawing.cs
- MultiPageTextView.cs
- ListBox.cs
- CodeTypeDeclarationCollection.cs
- ValidationError.cs
- ExpressionVisitor.cs
- AnnotationMap.cs
- SerializationStore.cs
- sqlstateclientmanager.cs
- CacheMemory.cs
- ProviderConnectionPoint.cs
- HttpCachePolicy.cs
- Pts.cs
- RIPEMD160.cs
- XPathAncestorQuery.cs
- ReverseInheritProperty.cs
- TextBoxAutomationPeer.cs
- TemplateXamlParser.cs
- WebInvokeAttribute.cs
- JournalEntry.cs
- ScriptControlManager.cs
- WebPartDisplayMode.cs
- ToolbarAUtomationPeer.cs
- ReferenceConverter.cs
- MobileDeviceCapabilitiesSectionHandler.cs
- ColorConvertedBitmapExtension.cs
- ListView.cs
- LiteralControl.cs
- WebBrowserPermission.cs
- CollectionViewProxy.cs
- MaskInputRejectedEventArgs.cs
- PointAnimationBase.cs
- SmtpAuthenticationManager.cs
- DefaultSection.cs
- Rect3D.cs
- OracleRowUpdatedEventArgs.cs
- ScopedKnownTypes.cs
- DirectoryGroupQuery.cs
- LineServicesRun.cs
- ObjectConverter.cs
- ColorConvertedBitmap.cs
- SvcFileManager.cs
- CheckBoxList.cs
- XmlBindingWorker.cs
- TrackBar.cs
- UnaryNode.cs
- AlignmentXValidation.cs
- Point4DConverter.cs
- XD.cs
- HorizontalAlignConverter.cs
- DataPagerField.cs
- XmlLanguageConverter.cs
- OdbcException.cs
- ElementHostAutomationPeer.cs
- WebBrowserPermission.cs
- RequiredFieldValidator.cs
- TagPrefixAttribute.cs
- HyperLinkDataBindingHandler.cs
- X509Chain.cs
- EntityClassGenerator.cs
- WpfMemberInvoker.cs
- PropertyValue.cs
- ConfigurationManagerInternalFactory.cs
- NamespaceInfo.cs
- SkipQueryOptionExpression.cs
- Latin1Encoding.cs
- Marshal.cs
- ListDataHelper.cs
- HwndKeyboardInputProvider.cs
- PropertyCollection.cs
- JulianCalendar.cs
- CreatingCookieEventArgs.cs
- MenuStrip.cs
- RegisteredHiddenField.cs
- ConvertBinder.cs
- ContainerVisual.cs
- DecryptRequest.cs
- ObservableDictionary.cs