Code:
/ 4.0 / 4.0 / 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. //------------------------------------------------------------------------------ // 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
- PipelineModuleStepContainer.cs
- Signature.cs
- ContainerTracking.cs
- SortedSet.cs
- MasterPageCodeDomTreeGenerator.cs
- EnumUnknown.cs
- Span.cs
- PropertyManager.cs
- DetailsViewPagerRow.cs
- SHA512Managed.cs
- TableCell.cs
- WebPartConnectionsDisconnectVerb.cs
- List.cs
- AttributeEmitter.cs
- ContainerActivationHelper.cs
- TextPenaltyModule.cs
- BitmapMetadataBlob.cs
- StoreItemCollection.cs
- SqlXml.cs
- AccessedThroughPropertyAttribute.cs
- SystemGatewayIPAddressInformation.cs
- PermissionAttributes.cs
- ConstNode.cs
- CookielessHelper.cs
- PermissionToken.cs
- TextEditor.cs
- LinkLabelLinkClickedEvent.cs
- PolyBezierSegment.cs
- MailBnfHelper.cs
- DllHostedComPlusServiceHost.cs
- SuppressMergeCheckAttribute.cs
- XmlDocumentType.cs
- ProviderCommandInfoUtils.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- recordstate.cs
- EndPoint.cs
- ClockController.cs
- RsaSecurityTokenAuthenticator.cs
- ImageMapEventArgs.cs
- RtfControls.cs
- PixelFormat.cs
- ActivityCodeGenerator.cs
- TextEffectCollection.cs
- QilPatternFactory.cs
- ValidationErrorCollection.cs
- SqlComparer.cs
- Token.cs
- DesignSurfaceServiceContainer.cs
- SqlDuplicator.cs
- TypeElement.cs
- AccessDataSourceView.cs
- SoapAttributeAttribute.cs
- XmlWrappingReader.cs
- SystemInfo.cs
- DependencyPropertyChangedEventArgs.cs
- RotateTransform3D.cs
- GradientBrush.cs
- DataSourceHelper.cs
- SpellerHighlightLayer.cs
- EventProviderBase.cs
- StrongNameMembershipCondition.cs
- SqlOuterApplyReducer.cs
- VSWCFServiceContractGenerator.cs
- CopyAttributesAction.cs
- ReachDocumentSequenceSerializerAsync.cs
- NextPreviousPagerField.cs
- LateBoundBitmapDecoder.cs
- ValidationHelpers.cs
- Int16AnimationBase.cs
- GB18030Encoding.cs
- XmlElementCollection.cs
- ConstraintConverter.cs
- Material.cs
- GraphicsState.cs
- DataGridColumnCollection.cs
- AccessorTable.cs
- DialogResultConverter.cs
- ConstructorExpr.cs
- MarshalByValueComponent.cs
- SrgsGrammar.cs
- QuaternionAnimationBase.cs
- CannotUnloadAppDomainException.cs
- PagesSection.cs
- ListBox.cs
- QueryMath.cs
- FileDialog_Vista.cs
- JsonWriterDelegator.cs
- SqlSelectClauseBuilder.cs
- ProfilePropertyNameValidator.cs
- TemplatedMailWebEventProvider.cs
- SHA1.cs
- SafeArrayRankMismatchException.cs
- XmlStreamStore.cs
- GroupItem.cs
- BitmapScalingModeValidation.cs
- HeaderCollection.cs
- Vector3DCollectionConverter.cs
- SoapSchemaImporter.cs
- StructuredTypeEmitter.cs
- SqlCachedBuffer.cs