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
- SplitterPanelDesigner.cs
- EnumValAlphaComparer.cs
- ConcatQueryOperator.cs
- WSHttpBindingCollectionElement.cs
- DynamicQueryStringParameter.cs
- PointConverter.cs
- SmtpTransport.cs
- CodePropertyReferenceExpression.cs
- XmlDataProvider.cs
- OracleDateTime.cs
- RelationshipEndCollection.cs
- ChildTable.cs
- DataBinding.cs
- InputScopeManager.cs
- InvalidFilterCriteriaException.cs
- HttpRequestWrapper.cs
- CaseStatementProjectedSlot.cs
- DiscoveryOperationContextExtension.cs
- HtmlShim.cs
- TraceListener.cs
- ExpressionNode.cs
- WebServicesInteroperability.cs
- TypeDescriptionProvider.cs
- PolygonHotSpot.cs
- CharStorage.cs
- TreeNodeCollection.cs
- FormCollection.cs
- MatrixStack.cs
- SqlDataSource.cs
- GestureRecognizer.cs
- EnumerableCollectionView.cs
- ProvidePropertyAttribute.cs
- CompoundFileIOPermission.cs
- XamlToRtfParser.cs
- XmlBinaryReaderSession.cs
- DesignerDataParameter.cs
- PointIndependentAnimationStorage.cs
- NativeRightsManagementAPIsStructures.cs
- DLinqColumnProvider.cs
- CoTaskMemSafeHandle.cs
- MailHeaderInfo.cs
- PatternMatchRules.cs
- DefaultTypeArgumentAttribute.cs
- WebMessageFormatHelper.cs
- DateTime.cs
- HtmlInputSubmit.cs
- PropertyInfoSet.cs
- DetailsViewDesigner.cs
- DeviceOverridableAttribute.cs
- WindowCollection.cs
- HorizontalAlignConverter.cs
- ProcessThreadDesigner.cs
- Base64Encoding.cs
- TextRenderer.cs
- XamlTypeMapperSchemaContext.cs
- EditingCommands.cs
- FontEmbeddingManager.cs
- SHA256Managed.cs
- basevalidator.cs
- ConfigurationSettings.cs
- AppSettingsReader.cs
- AttributeUsageAttribute.cs
- ObjectListCommandCollection.cs
- GreenMethods.cs
- ConsoleTraceListener.cs
- ScriptMethodAttribute.cs
- ObjectToIdCache.cs
- GeometryCombineModeValidation.cs
- SelectionProcessor.cs
- Vector3DValueSerializer.cs
- TimeZone.cs
- BehaviorEditorPart.cs
- ContainerUtilities.cs
- LoginCancelEventArgs.cs
- DesignerActionKeyboardBehavior.cs
- StateBag.cs
- BCryptHashAlgorithm.cs
- DecimalConverter.cs
- TaskFormBase.cs
- DateTimeUtil.cs
- SignerInfo.cs
- WindowsStreamSecurityBindingElement.cs
- ElapsedEventArgs.cs
- EntityDataSourceReferenceGroup.cs
- Drawing.cs
- CollectionConverter.cs
- SignatureDescription.cs
- securestring.cs
- AsnEncodedData.cs
- XPathConvert.cs
- Match.cs
- ADRole.cs
- WsatTransactionInfo.cs
- WSFederationHttpSecurityElement.cs
- PopupRoot.cs
- CheckPair.cs
- XmlCharType.cs
- CachedPathData.cs
- HelpProvider.cs
- XmlSchemas.cs