Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / RotateTransform.cs / 1305600 / RotateTransform.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2001 // // File: RotateTransform.cs //----------------------------------------------------------------------------- using MS.Internal; using MS.Internal.PresentationCore; using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// Create a rotation transformation in degrees. /// public sealed partial class RotateTransform : Transform { ////// /// public RotateTransform() { } ////// Create a rotation transformation in degrees. /// ///The angle of rotation in degrees. public RotateTransform(double angle) { Angle = angle; } ////// Create a rotation transformation in degrees. /// public RotateTransform( double angle, double centerX, double centerY ) : this(angle) { CenterX = centerX; CenterY = centerY; } ////// Return the current transformation value. /// public override Matrix Value { get { ReadPreamble(); Matrix m = new Matrix(); m.RotateAt(Angle, CenterX, CenterY); return m; } } ////// Returns true if transformation matches the identity transform. /// internal override bool IsIdentity { get { return Angle == 0 && CanFreeze; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2001 // // File: RotateTransform.cs //----------------------------------------------------------------------------- using MS.Internal; using MS.Internal.PresentationCore; using System; using System.Collections; using System.ComponentModel; using System.ComponentModel.Design.Serialization; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Runtime.InteropServices; using System.Text; using System.Windows; using System.Windows.Media; using System.Windows.Media.Animation; using System.Windows.Media.Composition; using SR=MS.Internal.PresentationCore.SR; using SRID=MS.Internal.PresentationCore.SRID; namespace System.Windows.Media { ////// Create a rotation transformation in degrees. /// public sealed partial class RotateTransform : Transform { ////// /// public RotateTransform() { } ////// Create a rotation transformation in degrees. /// ///The angle of rotation in degrees. public RotateTransform(double angle) { Angle = angle; } ////// Create a rotation transformation in degrees. /// public RotateTransform( double angle, double centerX, double centerY ) : this(angle) { CenterX = centerX; CenterY = centerY; } ////// Return the current transformation value. /// public override Matrix Value { get { ReadPreamble(); Matrix m = new Matrix(); m.RotateAt(Angle, CenterX, CenterY); return m; } } ////// Returns true if transformation matches the identity transform. /// internal override bool IsIdentity { get { return Angle == 0 && CanFreeze; } } } } // 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
- ArglessEventHandlerProxy.cs
- IisTraceListener.cs
- ReflectTypeDescriptionProvider.cs
- PopOutPanel.cs
- XmlDownloadManager.cs
- ResourceCategoryAttribute.cs
- XmlAttributeCollection.cs
- SyntaxCheck.cs
- StringResourceManager.cs
- DockPatternIdentifiers.cs
- ReadOnlyHierarchicalDataSourceView.cs
- CollectionViewSource.cs
- ThemeableAttribute.cs
- ClonableStack.cs
- XmlAnyElementAttributes.cs
- MruCache.cs
- ValidatingCollection.cs
- EntityUtil.cs
- XPathDocumentIterator.cs
- XmlHierarchicalEnumerable.cs
- MachineSettingsSection.cs
- FontInfo.cs
- StringComparer.cs
- TextDecorations.cs
- UInt16Converter.cs
- ValidatorCompatibilityHelper.cs
- EventRoute.cs
- AnonymousIdentificationModule.cs
- InputScopeConverter.cs
- CachedFontFace.cs
- ColumnCollection.cs
- EnumUnknown.cs
- ScriptingRoleServiceSection.cs
- AudioLevelUpdatedEventArgs.cs
- JsonSerializer.cs
- Int32Collection.cs
- IPEndPointCollection.cs
- SqlConnectionManager.cs
- XmlSchemaComplexContent.cs
- ISO2022Encoding.cs
- OleDbCommand.cs
- EdmFunctions.cs
- BasicBrowserDialog.cs
- infer.cs
- SoapAttributes.cs
- XmlSchemaRedefine.cs
- TextRange.cs
- CodeSpit.cs
- StickyNoteContentControl.cs
- ScanQueryOperator.cs
- TypeInfo.cs
- RouteValueDictionary.cs
- MemberDescriptor.cs
- ActivityInstanceMap.cs
- EditorPart.cs
- Shape.cs
- TextEditorTyping.cs
- UIInitializationException.cs
- XmlMapping.cs
- RestHandlerFactory.cs
- SplitterPanel.cs
- RoleManagerModule.cs
- RowBinding.cs
- FusionWrap.cs
- ProfileProvider.cs
- VerificationAttribute.cs
- SqlDataSourceCommandEventArgs.cs
- InvalidContentTypeException.cs
- PermissionSetTriple.cs
- StylusCollection.cs
- ZipIOExtraFieldElement.cs
- ProfileManager.cs
- Rect.cs
- StringArrayEditor.cs
- ObservableDictionary.cs
- DodSequenceMerge.cs
- SpecialNameAttribute.cs
- Main.cs
- IntellisenseTextBox.designer.cs
- _LocalDataStore.cs
- BindingObserver.cs
- XmlChoiceIdentifierAttribute.cs
- EmbeddedMailObjectsCollection.cs
- SqlTransaction.cs
- DataSysAttribute.cs
- RenderingEventArgs.cs
- GridViewDeleteEventArgs.cs
- ToolStripDropDownClosingEventArgs.cs
- ClusterRegistryConfigurationProvider.cs
- DrawingGroupDrawingContext.cs
- MobileCategoryAttribute.cs
- CompositeFontParser.cs
- SrgsSubset.cs
- PerformanceCountersElement.cs
- IdentifierService.cs
- SettingsBase.cs
- PreDigestedSignedInfo.cs
- FigureParagraph.cs
- DesignerUtils.cs
- DiscoveryClientDocuments.cs