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
- ScriptReferenceBase.cs
- MessageBuilder.cs
- TypeLibConverter.cs
- HttpRequestWrapper.cs
- XmlSchemaSimpleContentRestriction.cs
- controlskin.cs
- Rectangle.cs
- EntityStoreSchemaFilterEntry.cs
- VirtualizingStackPanel.cs
- StrongNameUtility.cs
- DockingAttribute.cs
- recordstatescratchpad.cs
- Internal.cs
- FontEmbeddingManager.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SemanticAnalyzer.cs
- TreeNodeCollection.cs
- ListView.cs
- Parser.cs
- TextPointer.cs
- TdsParserStaticMethods.cs
- InplaceBitmapMetadataWriter.cs
- XhtmlBasicLiteralTextAdapter.cs
- securitycriticaldataformultiplegetandset.cs
- KeyEvent.cs
- AssertHelper.cs
- ObfuscationAttribute.cs
- Run.cs
- NumberFormatInfo.cs
- NamespaceExpr.cs
- MultiByteCodec.cs
- ResourceProviderFactory.cs
- StoragePropertyMapping.cs
- TableProvider.cs
- SpanIndex.cs
- NativeMethodsOther.cs
- OptimalTextSource.cs
- RawStylusInput.cs
- GridPatternIdentifiers.cs
- FileClassifier.cs
- SafeNativeMethods.cs
- PenCursorManager.cs
- RangeValidator.cs
- SchemaSetCompiler.cs
- MaskDescriptor.cs
- CatalogPartChrome.cs
- BooleanFacetDescriptionElement.cs
- IdentityManager.cs
- XPathConvert.cs
- SpeechSynthesizer.cs
- MemberCollection.cs
- DataGridViewRowEventArgs.cs
- MenuAdapter.cs
- XmlNamespaceMappingCollection.cs
- NetCodeGroup.cs
- Viewport3DVisual.cs
- SqlDuplicator.cs
- MachineKeyConverter.cs
- EndpointBehaviorElement.cs
- BindingCollection.cs
- MethodToken.cs
- FlowThrottle.cs
- CacheSection.cs
- BrowserCapabilitiesFactory.cs
- TraceLevelStore.cs
- SynchronizingStream.cs
- SByte.cs
- DataServicePagingProviderWrapper.cs
- PartialArray.cs
- AddressHeaderCollection.cs
- EdmScalarPropertyAttribute.cs
- FieldAccessException.cs
- Decimal.cs
- PopupRoot.cs
- PathGeometry.cs
- MsmqHostedTransportConfiguration.cs
- StoreContentChangedEventArgs.cs
- LocalizationComments.cs
- XPathNodePointer.cs
- CheckBoxFlatAdapter.cs
- SessionSwitchEventArgs.cs
- ImportCatalogPart.cs
- DataErrorValidationRule.cs
- ReturnEventArgs.cs
- OleTxTransaction.cs
- Label.cs
- FileReader.cs
- HttpSessionStateBase.cs
- InternalConfigConfigurationFactory.cs
- DialogWindow.cs
- WebPartCloseVerb.cs
- AudioFormatConverter.cs
- DetailsViewCommandEventArgs.cs
- Stack.cs
- Substitution.cs
- DataControlImageButton.cs
- DrawingCollection.cs
- FontCollection.cs
- AnnotationResource.cs
- XhtmlBasicValidationSummaryAdapter.cs