Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- CqlGenerator.cs
- XmlSchemaDatatype.cs
- EdmValidator.cs
- EditingScope.cs
- RawStylusInputReport.cs
- Msec.cs
- OutputWindow.cs
- DataListItemEventArgs.cs
- DataGridViewEditingControlShowingEventArgs.cs
- ElementAction.cs
- TextWriterEngine.cs
- PermissionRequestEvidence.cs
- ScrollViewer.cs
- ProcessProtocolHandler.cs
- EncoderParameter.cs
- SpellCheck.cs
- DefaultHttpHandler.cs
- FormsIdentity.cs
- TabControlDesigner.cs
- SqlErrorCollection.cs
- ConfigXmlComment.cs
- Operators.cs
- SizeConverter.cs
- ExpandCollapseProviderWrapper.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ClientCultureInfo.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- AdapterUtil.cs
- BitStream.cs
- AddInEnvironment.cs
- SafeEventLogReadHandle.cs
- MaskedTextBox.cs
- XmlWriter.cs
- XmlWellformedWriter.cs
- DiscoveryClientChannelFactory.cs
- TextModifierScope.cs
- TypeInitializationException.cs
- XmlSchemaInfo.cs
- DataGridViewSelectedCellCollection.cs
- FrameworkName.cs
- Validator.cs
- MethodCallConverter.cs
- DataConnectionHelper.cs
- MexNamedPipeBindingCollectionElement.cs
- InfoCardListRequest.cs
- JoinTreeNode.cs
- FileStream.cs
- TraversalRequest.cs
- XPathPatternBuilder.cs
- BinaryCommonClasses.cs
- EventWaitHandleSecurity.cs
- OpCodes.cs
- XhtmlTextWriter.cs
- XsdBuildProvider.cs
- QualifiedCellIdBoolean.cs
- BindingNavigator.cs
- ToolStripItemImageRenderEventArgs.cs
- XhtmlBasicValidationSummaryAdapter.cs
- OutputCacheProfileCollection.cs
- ScriptingJsonSerializationSection.cs
- PerformanceCounter.cs
- TranslateTransform3D.cs
- UniformGrid.cs
- EmptyEnumerator.cs
- CaretElement.cs
- RecognizeCompletedEventArgs.cs
- SafeNativeMethods.cs
- TextBoxView.cs
- GeneratedCodeAttribute.cs
- SQLInt64.cs
- NamespaceList.cs
- StringToken.cs
- LocationInfo.cs
- CellParagraph.cs
- DiscreteKeyFrames.cs
- regiisutil.cs
- ExchangeUtilities.cs
- WorkflowMarkupElementEventArgs.cs
- WebPartConnectionsConnectVerb.cs
- NetworkInterface.cs
- SQLByteStorage.cs
- MatrixAnimationUsingKeyFrames.cs
- AssemblyNameProxy.cs
- Processor.cs
- XmlSchemaInferenceException.cs
- PeerNearMe.cs
- MultiSelectRootGridEntry.cs
- Blend.cs
- PackageProperties.cs
- GridViewAutoFormat.cs
- XPathEmptyIterator.cs
- StylusPointPropertyUnit.cs
- RuleRefElement.cs
- TransformerInfoCollection.cs
- SecurityKeyUsage.cs
- WebPartDescriptionCollection.cs
- RoleManagerEventArgs.cs
- ECDiffieHellmanCng.cs
- DependencyPropertyKind.cs
- Line.cs