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
- CodePrimitiveExpression.cs
- ResourcesBuildProvider.cs
- KeyValuePair.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- ListControlConvertEventArgs.cs
- SoapEnumAttribute.cs
- Native.cs
- SendOperation.cs
- QueryStringParameter.cs
- BaseTemplateCodeDomTreeGenerator.cs
- InfoCardRSACryptoProvider.cs
- SingleStorage.cs
- sortedlist.cs
- RegexStringValidator.cs
- SkipQueryOptionExpression.cs
- CodeCompiler.cs
- HttpCookie.cs
- OrderByQueryOptionExpression.cs
- OleServicesContext.cs
- SafeArrayRankMismatchException.cs
- StrokeIntersection.cs
- TdsParserHelperClasses.cs
- SqlDataSourceCommandEventArgs.cs
- PolicyUnit.cs
- Descriptor.cs
- BulletedListEventArgs.cs
- BooleanKeyFrameCollection.cs
- UpdatePanel.cs
- JavaScriptSerializer.cs
- ChtmlSelectionListAdapter.cs
- ExecutorLocksHeldException.cs
- _BaseOverlappedAsyncResult.cs
- DoubleAnimationUsingKeyFrames.cs
- WithParamAction.cs
- StaticTextPointer.cs
- CapabilitiesSection.cs
- HScrollBar.cs
- ContentOperations.cs
- PerformanceCounterCategory.cs
- Sql8ExpressionRewriter.cs
- Attributes.cs
- SpStreamWrapper.cs
- OneToOneMappingSerializer.cs
- ViewBase.cs
- PngBitmapEncoder.cs
- ProcessModelInfo.cs
- SQLConvert.cs
- NamespaceDecl.cs
- OdbcCommand.cs
- FileDialog_Vista_Interop.cs
- SpellerHighlightLayer.cs
- RightNameExpirationInfoPair.cs
- DispatcherHooks.cs
- ResourceDictionaryCollection.cs
- RegexBoyerMoore.cs
- TabItemAutomationPeer.cs
- HttpException.cs
- WindowsBrush.cs
- RegistryKey.cs
- TagPrefixCollection.cs
- MenuEventArgs.cs
- SqlDataReader.cs
- Transform.cs
- FormViewModeEventArgs.cs
- CustomTrackingQuery.cs
- DataPagerFieldCollection.cs
- TextDecoration.cs
- EntityCommandDefinition.cs
- basecomparevalidator.cs
- PropertyItem.cs
- TagMapCollection.cs
- CorrelationKey.cs
- StoreUtilities.cs
- CompModSwitches.cs
- DetailsViewUpdateEventArgs.cs
- RadioButtonFlatAdapter.cs
- LogicalChannelCollection.cs
- WebPartDescriptionCollection.cs
- AsyncResult.cs
- BooleanSwitch.cs
- ServiceHostFactory.cs
- ProfilePropertyNameValidator.cs
- __Error.cs
- MenuRendererStandards.cs
- ExpressionBuilderContext.cs
- SQLUtility.cs
- ConstructorArgumentAttribute.cs
- FileRegion.cs
- xmlglyphRunInfo.cs
- XPathDocumentNavigator.cs
- ProfileSection.cs
- Selection.cs
- ConnectionStringsExpressionBuilder.cs
- SqlCacheDependencySection.cs
- WindowAutomationPeer.cs
- AnimationClockResource.cs
- Environment.cs
- PeerCustomResolverBindingElement.cs
- PackageRelationship.cs
- SqlEnums.cs