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
- PublishLicense.cs
- MinimizableAttributeTypeConverter.cs
- UriScheme.cs
- DefaultExpression.cs
- future.cs
- TextCharacters.cs
- CodeNamespaceImportCollection.cs
- reliableinputsessionchannel.cs
- HttpCookieCollection.cs
- BridgeDataRecord.cs
- FrameworkPropertyMetadata.cs
- grammarelement.cs
- MeasureData.cs
- Privilege.cs
- PropertyItem.cs
- InstanceCreationEditor.cs
- HashHelper.cs
- Trace.cs
- TextPointer.cs
- RuleSettingsCollection.cs
- EmbeddedMailObject.cs
- TypedTableBaseExtensions.cs
- TransactionBehavior.cs
- FixedPosition.cs
- Authorization.cs
- CompilerError.cs
- ProcessHostServerConfig.cs
- InheritanceAttribute.cs
- BrowserCapabilitiesFactoryBase.cs
- TabControlAutomationPeer.cs
- _SecureChannel.cs
- AssemblyNameProxy.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- IApplicationTrustManager.cs
- WebPartZone.cs
- Operators.cs
- X509CertificateCollection.cs
- XmlWhitespace.cs
- WmfPlaceableFileHeader.cs
- RoleGroupCollection.cs
- MiniLockedBorderGlyph.cs
- UserNameSecurityTokenParameters.cs
- TemplateField.cs
- StrongNameIdentityPermission.cs
- DoubleAnimationBase.cs
- SecurityHeader.cs
- Identifier.cs
- XmlObjectSerializerContext.cs
- PresentationTraceSources.cs
- DefaultWorkflowTransactionService.cs
- OptimizedTemplateContent.cs
- CallbackValidatorAttribute.cs
- DataGridParentRows.cs
- BinaryObjectReader.cs
- NativeMethods.cs
- TypeListConverter.cs
- TableLayoutStyle.cs
- SqlTrackingWorkflowInstance.cs
- AnimationLayer.cs
- CustomErrorsSection.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- ReplacementText.cs
- TextBoxAutomationPeer.cs
- SemaphoreSlim.cs
- CachedTypeface.cs
- UpdateTranslator.cs
- MultipleViewPattern.cs
- RepeatBehavior.cs
- ContextMarshalException.cs
- ClipboardProcessor.cs
- mediaclock.cs
- FixedSOMTableRow.cs
- FacetValueContainer.cs
- PeerNameRecord.cs
- XmlCharCheckingWriter.cs
- WebPartActionVerb.cs
- RSAPKCS1SignatureDeformatter.cs
- EventProviderTraceListener.cs
- X509ScopedServiceCertificateElement.cs
- Rfc2898DeriveBytes.cs
- VectorValueSerializer.cs
- ToolStripControlHost.cs
- BaseTemplateBuildProvider.cs
- ResXResourceSet.cs
- MemberInfoSerializationHolder.cs
- XComponentModel.cs
- BindingContext.cs
- precedingquery.cs
- TrackPointCollection.cs
- ConfigViewGenerator.cs
- XmlDataSource.cs
- SerializationFieldInfo.cs
- GlyphRunDrawing.cs
- AtomServiceDocumentSerializer.cs
- TextServicesContext.cs
- TextProperties.cs
- versioninfo.cs
- DbFunctionCommandTree.cs
- LinkClickEvent.cs
- COM2TypeInfoProcessor.cs