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
- AlphabeticalEnumConverter.cs
- GridLength.cs
- BitmapEncoder.cs
- WebServiceResponseDesigner.cs
- ColumnPropertiesGroup.cs
- PersonalizationProvider.cs
- XmlSchemaComplexContent.cs
- DataGridViewColumnTypePicker.cs
- AutoResetEvent.cs
- MimeFormImporter.cs
- ConfigsHelper.cs
- OracleInternalConnection.cs
- ThemeInfoAttribute.cs
- OleDbErrorCollection.cs
- MULTI_QI.cs
- XmlCharCheckingReader.cs
- WebPartMenu.cs
- SettingsPropertyWrongTypeException.cs
- ColumnHeaderConverter.cs
- GridToolTip.cs
- UIElement3D.cs
- OleTxTransactionInfo.cs
- Pair.cs
- ListSortDescription.cs
- PanelDesigner.cs
- ZipFileInfoCollection.cs
- InputDevice.cs
- SqlDataSourceFilteringEventArgs.cs
- PermissionToken.cs
- WSHttpTransportSecurityElement.cs
- CopyAction.cs
- TimeoutValidationAttribute.cs
- CompoundFileStreamReference.cs
- InputReport.cs
- ToolboxComponentsCreatedEventArgs.cs
- DictionaryTraceRecord.cs
- ChildrenQuery.cs
- Update.cs
- SyntaxCheck.cs
- JavaScriptObjectDeserializer.cs
- ByeOperationAsyncResult.cs
- Point3DCollection.cs
- TextView.cs
- BoundField.cs
- ColorPalette.cs
- AutoGeneratedField.cs
- WebPartCloseVerb.cs
- AffineTransform3D.cs
- ColorPalette.cs
- PropertyTabChangedEvent.cs
- PageHandlerFactory.cs
- SelectionEditingBehavior.cs
- HashStream.cs
- TextBoxLine.cs
- EventLogPermissionEntryCollection.cs
- OdbcUtils.cs
- Italic.cs
- TypedElement.cs
- XmlSchemaSimpleTypeRestriction.cs
- StorageComplexPropertyMapping.cs
- DynamicPropertyReader.cs
- BuildDependencySet.cs
- CharacterBufferReference.cs
- FixedTextBuilder.cs
- NameTable.cs
- AutomationElementCollection.cs
- nulltextcontainer.cs
- UpdateInfo.cs
- MetaDataInfo.cs
- ModuleElement.cs
- ReadOnlyHierarchicalDataSource.cs
- ExchangeUtilities.cs
- LayoutUtils.cs
- AdRotator.cs
- Emitter.cs
- ValueChangedEventManager.cs
- RichTextBox.cs
- ReservationNotFoundException.cs
- PanelStyle.cs
- ListControlConvertEventArgs.cs
- LoginName.cs
- SharedPerformanceCounter.cs
- PropertyInfo.cs
- DataControlReferenceCollection.cs
- SymmetricSecurityProtocol.cs
- UnionExpr.cs
- SQLChars.cs
- ListControl.cs
- MissingMethodException.cs
- XmlNodeChangedEventArgs.cs
- RoutedEvent.cs
- DataSetMappper.cs
- SQLInt16.cs
- XamlDesignerSerializationManager.cs
- XmlCollation.cs
- BackgroundWorker.cs
- Container.cs
- ArrayTypeMismatchException.cs
- PeerContact.cs
- MemberHolder.cs