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
- CodeDomSerializationProvider.cs
- FileEnumerator.cs
- CoTaskMemUnicodeSafeHandle.cs
- SqlCommand.cs
- GridViewAutomationPeer.cs
- ObjectMaterializedEventArgs.cs
- PassportAuthentication.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- DesignConnection.cs
- AtomicFile.cs
- WebPartCatalogCloseVerb.cs
- SqlServer2KCompatibilityAnnotation.cs
- Misc.cs
- InternalCache.cs
- ToolboxItemCollection.cs
- ProcessModule.cs
- CallbackException.cs
- DataObjectMethodAttribute.cs
- Drawing.cs
- StreamUpgradeInitiator.cs
- TextRenderer.cs
- CmsUtils.cs
- PropertyBuilder.cs
- SerializationSectionGroup.cs
- SerializableAttribute.cs
- RemoteWebConfigurationHost.cs
- EffectiveValueEntry.cs
- CreateRefExpr.cs
- ContextInformation.cs
- ComplexObject.cs
- SafeThreadHandle.cs
- XmlnsCache.cs
- ObjectListGeneralPage.cs
- OutputCache.cs
- CompileLiteralTextParser.cs
- QueryReaderSettings.cs
- TrustManagerPromptUI.cs
- LinkButton.cs
- NamespaceEmitter.cs
- RotateTransform.cs
- EventLogStatus.cs
- Brush.cs
- wmiprovider.cs
- UnsafeNativeMethods.cs
- SoapProtocolReflector.cs
- TextFormatterHost.cs
- CodeTypeMember.cs
- StandardOleMarshalObject.cs
- TransactionManager.cs
- StylusButtonCollection.cs
- Selection.cs
- LayoutUtils.cs
- MappingException.cs
- SchemaType.cs
- StoryFragments.cs
- MediaTimeline.cs
- ToolStripOverflow.cs
- DbTypeMap.cs
- NameTable.cs
- DocumentReferenceCollection.cs
- CodeMethodReturnStatement.cs
- DrawingServices.cs
- EasingKeyFrames.cs
- XPathSelectionIterator.cs
- IdnElement.cs
- NameValueCollection.cs
- ReadOnlyHierarchicalDataSourceView.cs
- Parameter.cs
- ListSortDescription.cs
- _ListenerResponseStream.cs
- HwndSourceKeyboardInputSite.cs
- CompoundFileStorageReference.cs
- ZoneIdentityPermission.cs
- FamilyTypeface.cs
- PromptBuilder.cs
- BStrWrapper.cs
- XmlValueConverter.cs
- DataGridItem.cs
- RelationshipFixer.cs
- Vector3DCollectionConverter.cs
- CustomAttribute.cs
- ObjectConverter.cs
- COM2ExtendedBrowsingHandler.cs
- HttpListener.cs
- DataControlFieldHeaderCell.cs
- SqlError.cs
- EllipticalNodeOperations.cs
- AuthenticateEventArgs.cs
- RadioButtonFlatAdapter.cs
- SqlPersonalizationProvider.cs
- Rotation3DAnimationUsingKeyFrames.cs
- InteropAutomationProvider.cs
- TriggerAction.cs
- SQLSingleStorage.cs
- FacetChecker.cs
- BitmapEffectState.cs
- MenuScrollingVisibilityConverter.cs
- SpecularMaterial.cs
- ImageAttributes.cs
- ClusterSafeNativeMethods.cs