Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Media / RotateTransform.cs / 1 / 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
- contentDescriptor.cs
- SqlBooleanMismatchVisitor.cs
- ToolStripItemImageRenderEventArgs.cs
- ToolStripPanelRow.cs
- DynamicPhysicalDiscoSearcher.cs
- SizeChangedEventArgs.cs
- basecomparevalidator.cs
- Tuple.cs
- SQLByte.cs
- PropertyGeneratedEventArgs.cs
- DesignTimeVisibleAttribute.cs
- PasswordTextContainer.cs
- DrawingAttributes.cs
- PageVisual.cs
- Model3D.cs
- DynamicControl.cs
- XmlnsDictionary.cs
- DataListComponentEditor.cs
- DataSource.cs
- DataTablePropertyDescriptor.cs
- StrongTypingException.cs
- UrlAuthFailedErrorFormatter.cs
- SerializationSectionGroup.cs
- ComponentGlyph.cs
- StrokeNodeOperations.cs
- UndoManager.cs
- ProtectedConfiguration.cs
- _DigestClient.cs
- GeneratedContractType.cs
- StreamingContext.cs
- CodeIndexerExpression.cs
- LOSFormatter.cs
- CustomAttributeSerializer.cs
- SendMailErrorEventArgs.cs
- EventDrivenDesigner.cs
- GeneralTransform3DTo2DTo3D.cs
- FixedDSBuilder.cs
- GiveFeedbackEventArgs.cs
- DataSourceControlBuilder.cs
- CodeGenerator.cs
- _NestedSingleAsyncResult.cs
- MemberProjectionIndex.cs
- MimePart.cs
- MessageQueueTransaction.cs
- ExternalFile.cs
- FrameworkTemplate.cs
- ConditionBrowserDialog.cs
- SimpleWebHandlerParser.cs
- RIPEMD160Managed.cs
- HttpDigestClientElement.cs
- ChtmlTextWriter.cs
- QuestionEventArgs.cs
- ToolStripStatusLabel.cs
- HttpCookiesSection.cs
- UserNameSecurityTokenProvider.cs
- MenuItemBinding.cs
- MenuStrip.cs
- InheritanceContextChangedEventManager.cs
- XmlSchemaImporter.cs
- Calendar.cs
- SiteIdentityPermission.cs
- InProcStateClientManager.cs
- Timer.cs
- ClientSideQueueItem.cs
- PageAsyncTask.cs
- _NegoStream.cs
- LessThanOrEqual.cs
- TypeBuilderInstantiation.cs
- ChildrenQuery.cs
- Int32Rect.cs
- DocumentCollection.cs
- PartialTrustHelpers.cs
- TextMarkerSource.cs
- BuilderElements.cs
- smtppermission.cs
- ImageList.cs
- IntegerFacetDescriptionElement.cs
- NavigationEventArgs.cs
- TdsParserSessionPool.cs
- MessageSmuggler.cs
- XmlILAnnotation.cs
- TextRangeSerialization.cs
- StylusButtonCollection.cs
- COM2ExtendedUITypeEditor.cs
- CommandArguments.cs
- SqlMethodTransformer.cs
- SafePEFileHandle.cs
- SchemaImporter.cs
- Button.cs
- BooleanExpr.cs
- ColumnCollection.cs
- BookmarkInfo.cs
- InstanceDataCollectionCollection.cs
- CalloutQueueItem.cs
- ComponentConverter.cs
- SystemIPv6InterfaceProperties.cs
- Trace.cs
- GeometryCollection.cs
- TickBar.cs
- SlotInfo.cs