Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- List.cs
- _Events.cs
- SQLCharsStorage.cs
- WmlMobileTextWriter.cs
- wmiprovider.cs
- MouseEventArgs.cs
- ParameterToken.cs
- RenderData.cs
- KeyboardEventArgs.cs
- ManagementInstaller.cs
- StructureChangedEventArgs.cs
- TransactionalPackage.cs
- Vector3DCollectionConverter.cs
- SID.cs
- IsolatedStorageException.cs
- PingReply.cs
- SoapConverter.cs
- DataError.cs
- SqlRetyper.cs
- DefaultValueTypeConverter.cs
- InternalsVisibleToAttribute.cs
- FormatSettings.cs
- HostProtectionPermission.cs
- GcHandle.cs
- FormConverter.cs
- TokenBasedSetEnumerator.cs
- AttachmentCollection.cs
- OleDbInfoMessageEvent.cs
- StrokeCollection.cs
- ToolStripPanel.cs
- Operator.cs
- _emptywebproxy.cs
- KeyFrames.cs
- CodeDirectiveCollection.cs
- Exceptions.cs
- CheckBoxFlatAdapter.cs
- SAPIEngineTypes.cs
- ProtectedConfiguration.cs
- FixedTextBuilder.cs
- PointAnimationBase.cs
- CodeExporter.cs
- ComNativeDescriptor.cs
- FreezableDefaultValueFactory.cs
- FileStream.cs
- SmiXetterAccessMap.cs
- PropertyGridEditorPart.cs
- LightweightCodeGenerator.cs
- ServiceMemoryGates.cs
- BufferedGraphicsManager.cs
- DecimalSumAggregationOperator.cs
- XXXOnTypeBuilderInstantiation.cs
- CleanUpVirtualizedItemEventArgs.cs
- XPathArrayIterator.cs
- Style.cs
- FontNamesConverter.cs
- FlowNode.cs
- SqlCacheDependencyDatabase.cs
- WhitespaceRuleReader.cs
- HtmlGenericControl.cs
- TCPListener.cs
- FormatException.cs
- PackagePart.cs
- util.cs
- UIElementPropertyUndoUnit.cs
- RootNamespaceAttribute.cs
- SettingsPropertyIsReadOnlyException.cs
- GroupBox.cs
- SqlBulkCopyColumnMapping.cs
- TextRunCacheImp.cs
- DataKeyCollection.cs
- XmlSignatureManifest.cs
- HiddenFieldPageStatePersister.cs
- SafeRightsManagementSessionHandle.cs
- ApplicationId.cs
- NumberFunctions.cs
- SqlReferenceCollection.cs
- HScrollProperties.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- ConstNode.cs
- FtpRequestCacheValidator.cs
- DataGridHelper.cs
- StringHelper.cs
- mongolianshape.cs
- OperationResponse.cs
- ActionFrame.cs
- FastEncoder.cs
- CaseStatementProjectedSlot.cs
- FakeModelPropertyImpl.cs
- ChildChangedEventArgs.cs
- XmlDataSource.cs
- AppliedDeviceFiltersDialog.cs
- Color.cs
- XPathEmptyIterator.cs
- SqlInternalConnectionSmi.cs
- WsiProfilesElementCollection.cs
- InternalConfigRoot.cs
- PtsContext.cs
- Stopwatch.cs
- BitmapEffectGroup.cs
- ADConnectionHelper.cs