Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / Effects / BlurEffect.cs / 1305600 / BlurEffect.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2005 // // File: BlurImageEffect.cs //----------------------------------------------------------------------------- using System; using System.Diagnostics; using System.Windows; using System.Windows.Media; namespace System.Windows.Media.Effects { ////// BlurEffect /// public partial class BlurEffect { #region Constructors ////// Constructor /// public BlurEffect() { } #endregion ////// Takes in content bounds, and returns the bounds of the rendered /// output of that content after the Effect is applied. /// internal override Rect GetRenderBounds(Rect contentBounds) { Point topLeft = new Point(); Point bottomRight = new Point(); double radius = Radius; topLeft.X = contentBounds.TopLeft.X - radius; topLeft.Y = contentBounds.TopLeft.Y - radius; bottomRight.X = contentBounds.BottomRight.X + radius; bottomRight.Y = contentBounds.BottomRight.Y + radius; return new Rect(topLeft, bottomRight); } } } // 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
- TraceSection.cs
- SeverityFilter.cs
- OdbcDataReader.cs
- TemplateManager.cs
- DataContext.cs
- ThreadInterruptedException.cs
- EntityDataSourceWrapper.cs
- UriParserTemplates.cs
- BamlLocalizationDictionary.cs
- IPPacketInformation.cs
- Activity.cs
- IIS7UserPrincipal.cs
- NotificationContext.cs
- GridLength.cs
- ProviderException.cs
- WebBrowserContainer.cs
- TabItemAutomationPeer.cs
- IsolatedStorage.cs
- Operand.cs
- DataGridView.cs
- SiteMap.cs
- shaperfactoryquerycacheentry.cs
- ObjectComplexPropertyMapping.cs
- SafeHandles.cs
- HtmlTableRowCollection.cs
- XsdDuration.cs
- SqlBuilder.cs
- TextUtf8RawTextWriter.cs
- BitmapEffectGroup.cs
- StringUtil.cs
- ReadOnlyObservableCollection.cs
- TextElement.cs
- UnionCodeGroup.cs
- ScriptIgnoreAttribute.cs
- FileRecordSequenceHelper.cs
- NativeMethodsOther.cs
- WCFServiceClientProxyGenerator.cs
- FontConverter.cs
- RegisteredExpandoAttribute.cs
- Point.cs
- WS2007HttpBindingCollectionElement.cs
- ShapingEngine.cs
- ListViewGroupConverter.cs
- RequestUriProcessor.cs
- SecurityTokenResolver.cs
- SimpleBitVector32.cs
- DataGridViewLayoutData.cs
- CommonGetThemePartSize.cs
- NullableBoolConverter.cs
- CodeDomConfigurationHandler.cs
- DataGridViewMethods.cs
- TypedTableBaseExtensions.cs
- EntitySqlQueryState.cs
- DBDataPermission.cs
- ScriptIgnoreAttribute.cs
- namescope.cs
- CodeSnippetStatement.cs
- BulletChrome.cs
- OutOfProcStateClientManager.cs
- DialogResultConverter.cs
- TextFormatterHost.cs
- Camera.cs
- ImmComposition.cs
- ChannelServices.cs
- DiscreteKeyFrames.cs
- HttpAsyncResult.cs
- DataGridViewRowHeightInfoNeededEventArgs.cs
- OpCopier.cs
- BoundColumn.cs
- MethodToken.cs
- _ShellExpression.cs
- TextParagraphView.cs
- SkinBuilder.cs
- GetChildSubtree.cs
- SqlUtil.cs
- SiteMap.cs
- ToolBarOverflowPanel.cs
- EventHandlersStore.cs
- ButtonBaseAutomationPeer.cs
- GridLengthConverter.cs
- ReservationNotFoundException.cs
- ProfileBuildProvider.cs
- ActivityDesigner.cs
- Itemizer.cs
- ToolBarPanel.cs
- MarshalDirectiveException.cs
- CssClassPropertyAttribute.cs
- ErrorFormatterPage.cs
- ExpressionVisitor.cs
- MouseOverProperty.cs
- GZipStream.cs
- WrappedIUnknown.cs
- SkipQueryOptionExpression.cs
- WebServiceClientProxyGenerator.cs
- TableHeaderCell.cs
- DrawingContextDrawingContextWalker.cs
- ValidatingReaderNodeData.cs
- SourceLocationProvider.cs
- messageonlyhwndwrapper.cs
- FaultPropagationRecord.cs