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
- XPathExpr.cs
- DataGridViewToolTip.cs
- _Connection.cs
- AssemblyCache.cs
- RepeatInfo.cs
- Bold.cs
- Events.cs
- JpegBitmapEncoder.cs
- TransformerInfo.cs
- XMLDiffLoader.cs
- TimeoutConverter.cs
- XmlDataSourceNodeDescriptor.cs
- CodeIdentifier.cs
- SqlTypeSystemProvider.cs
- XamlFigureLengthSerializer.cs
- CodeParameterDeclarationExpression.cs
- InkCanvasSelectionAdorner.cs
- UICuesEvent.cs
- CaseExpr.cs
- TextRunCache.cs
- InkPresenterAutomationPeer.cs
- ZipIOBlockManager.cs
- ResXFileRef.cs
- XamlPathDataSerializer.cs
- TreeNodeEventArgs.cs
- PublisherMembershipCondition.cs
- TextPointer.cs
- DependencyObjectPropertyDescriptor.cs
- TextEditorContextMenu.cs
- XsdValidatingReader.cs
- HttpException.cs
- WSDualHttpBinding.cs
- StretchValidation.cs
- ConditionValidator.cs
- NominalTypeEliminator.cs
- SByteConverter.cs
- ListViewContainer.cs
- SqlServer2KCompatibilityAnnotation.cs
- CodeDomConfigurationHandler.cs
- TransformerTypeCollection.cs
- PathFigureCollectionValueSerializer.cs
- ImageSourceValueSerializer.cs
- AttributeUsageAttribute.cs
- ApplicationManager.cs
- EdmItemCollection.cs
- TableItemPattern.cs
- ZipFileInfoCollection.cs
- NameValuePair.cs
- Scheduling.cs
- DataSourceHelper.cs
- WizardDesigner.cs
- Brush.cs
- RuntimeResourceSet.cs
- FontNameConverter.cs
- BatchParser.cs
- COAUTHINFO.cs
- SchemaManager.cs
- BroadcastEventHelper.cs
- UnsignedPublishLicense.cs
- ResourceFallbackManager.cs
- ObjectDataSource.cs
- PropertyNames.cs
- HttpListenerPrefixCollection.cs
- TypeNameConverter.cs
- BuildManager.cs
- DefaultValueTypeConverter.cs
- XmlNullResolver.cs
- ActivityStateRecord.cs
- versioninfo.cs
- InfoCardRSACryptoProvider.cs
- Enum.cs
- BinHexEncoder.cs
- CodeMemberField.cs
- StatusCommandUI.cs
- DataGridViewButtonCell.cs
- XPathArrayIterator.cs
- ClusterRegistryConfigurationProvider.cs
- XmlAttributes.cs
- RegistryExceptionHelper.cs
- BindingExpression.cs
- ToolStripItemBehavior.cs
- PropertyInfoSet.cs
- StackSpiller.Temps.cs
- OleDbWrapper.cs
- TimeSpan.cs
- URI.cs
- DefaultProxySection.cs
- UserPreferenceChangedEventArgs.cs
- CharacterShapingProperties.cs
- SoapCodeExporter.cs
- BaseTemplateBuildProvider.cs
- StaticFileHandler.cs
- Variable.cs
- PeerNameRecordCollection.cs
- HttpDigestClientElement.cs
- SqlBulkCopy.cs
- XamlClipboardData.cs
- SecureStringHasher.cs
- MediaTimeline.cs
- MonitoringDescriptionAttribute.cs