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
- DynamicValueConverter.cs
- EventEntry.cs
- DependencyObjectProvider.cs
- ErrorStyle.cs
- followingsibling.cs
- RuntimeWrappedException.cs
- RecordManager.cs
- TargetPerspective.cs
- HtmlInputRadioButton.cs
- FormViewInsertedEventArgs.cs
- HandlerBase.cs
- BaseServiceProvider.cs
- _NestedSingleAsyncResult.cs
- OdbcFactory.cs
- DBCommandBuilder.cs
- XsltOutput.cs
- HwndSource.cs
- FormConverter.cs
- IncrementalCompileAnalyzer.cs
- GridViewCellAutomationPeer.cs
- DecimalConstantAttribute.cs
- ResourcePermissionBase.cs
- IfAction.cs
- OutputScopeManager.cs
- ControlDesigner.cs
- TransformFinalBlockRequest.cs
- DefaultCommandExtensionCallback.cs
- XmlSchema.cs
- GregorianCalendar.cs
- ReflectPropertyDescriptor.cs
- AttributeAction.cs
- Pen.cs
- ELinqQueryState.cs
- WindowsPrincipal.cs
- XMLUtil.cs
- PropertyMapper.cs
- DbTypeMap.cs
- SmtpLoginAuthenticationModule.cs
- RowParagraph.cs
- NotImplementedException.cs
- HierarchicalDataSourceIDConverter.cs
- ResourceBinder.cs
- jithelpers.cs
- TypedReference.cs
- MediaTimeline.cs
- LinqDataSourceUpdateEventArgs.cs
- Expander.cs
- DocComment.cs
- ConfigurationCollectionAttribute.cs
- FixedFindEngine.cs
- OrderPreservingSpoolingTask.cs
- HttpListener.cs
- TreeNodeEventArgs.cs
- X509InitiatorCertificateClientElement.cs
- TextEditorThreadLocalStore.cs
- XmlDataSourceView.cs
- SystemIcmpV4Statistics.cs
- IDQuery.cs
- FieldValue.cs
- PictureBox.cs
- LinearGradientBrush.cs
- XPathNavigatorReader.cs
- MenuItemBinding.cs
- InternalSafeNativeMethods.cs
- DelegateHelpers.Generated.cs
- StringUtil.cs
- Rotation3D.cs
- Size3D.cs
- GroupDescription.cs
- EntityTransaction.cs
- WindowProviderWrapper.cs
- Array.cs
- DataChangedEventManager.cs
- TdsParserSafeHandles.cs
- ConfigurationConverterBase.cs
- ProxyHelper.cs
- CatalogUtil.cs
- documentsequencetextview.cs
- Container.cs
- AttachedPropertyBrowsableAttribute.cs
- InterleavedZipPartStream.cs
- ToolStripRenderer.cs
- ObsoleteAttribute.cs
- QueryRewriter.cs
- AjaxFrameworkAssemblyAttribute.cs
- ListSourceHelper.cs
- TransactionContextValidator.cs
- ConfigXmlSignificantWhitespace.cs
- ArgumentOutOfRangeException.cs
- SingleStorage.cs
- PermissionSet.cs
- Model3DGroup.cs
- Perspective.cs
- UInt64.cs
- DATA_BLOB.cs
- RelationshipDetailsRow.cs
- ProgressiveCrcCalculatingStream.cs
- DataObject.cs
- XPathPatternParser.cs
- ServiceCredentials.cs