Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- FileUpload.cs
- XmlSchemaAppInfo.cs
- InputProviderSite.cs
- PriorityChain.cs
- ControlCachePolicy.cs
- ParallelTimeline.cs
- ObjectQueryProvider.cs
- DataGridCell.cs
- RangeContentEnumerator.cs
- Button.cs
- GrabHandleGlyph.cs
- MemoryPressure.cs
- FontDialog.cs
- CompilerErrorCollection.cs
- WeakHashtable.cs
- InternalTypeHelper.cs
- UInt64Converter.cs
- WindowsSysHeader.cs
- HandledEventArgs.cs
- Misc.cs
- XPathBinder.cs
- Polygon.cs
- DCSafeHandle.cs
- GeneratedCodeAttribute.cs
- BitmapMetadataBlob.cs
- FileFormatException.cs
- BezierSegment.cs
- WebPartsPersonalization.cs
- PropertyInfoSet.cs
- ForeignKeyFactory.cs
- SAPICategories.cs
- DocumentViewerBase.cs
- EditorBrowsableAttribute.cs
- UrlAuthFailedErrorFormatter.cs
- IconConverter.cs
- AppDomainInfo.cs
- LinqDataSourceInsertEventArgs.cs
- IisTraceListener.cs
- wgx_commands.cs
- IisTraceWebEventProvider.cs
- CodeTypeReferenceExpression.cs
- TabControlDesigner.cs
- DbConvert.cs
- QueryContinueDragEvent.cs
- VisualCollection.cs
- FrameDimension.cs
- PropertyValueChangedEvent.cs
- MarkupCompilePass1.cs
- AsymmetricSignatureDeformatter.cs
- GregorianCalendar.cs
- EntityDataSourceSelectingEventArgs.cs
- VerificationException.cs
- NetworkInformationException.cs
- BrowserDefinitionCollection.cs
- HttpCachePolicyWrapper.cs
- HttpWebResponse.cs
- Animatable.cs
- RectangleConverter.cs
- DataObjectMethodAttribute.cs
- SafeRightsManagementPubHandle.cs
- DataGridViewCellPaintingEventArgs.cs
- DesignerSerializationOptionsAttribute.cs
- SafeRightsManagementPubHandle.cs
- ObjectDataSource.cs
- GatewayDefinition.cs
- SoapFormatExtensions.cs
- IPAddressCollection.cs
- ContainerAction.cs
- TraceUtility.cs
- EventDescriptorCollection.cs
- DataControlExtensions.cs
- OleDbRowUpdatedEvent.cs
- HandlerFactoryCache.cs
- MultiBinding.cs
- QilVisitor.cs
- MediaScriptCommandRoutedEventArgs.cs
- SpotLight.cs
- SqlStream.cs
- HtmlTextBoxAdapter.cs
- SystemUdpStatistics.cs
- OutputCacheSettings.cs
- DesignerTransaction.cs
- ScriptReferenceBase.cs
- SmtpNegotiateAuthenticationModule.cs
- WebPartManager.cs
- CompensationDesigner.cs
- figurelength.cs
- _TransmitFileOverlappedAsyncResult.cs
- TextEndOfParagraph.cs
- Base64Decoder.cs
- ProviderConnectionPointCollection.cs
- CssStyleCollection.cs
- AgileSafeNativeMemoryHandle.cs
- DiagnosticTraceSchemas.cs
- FontStretch.cs
- RequestBringIntoViewEventArgs.cs
- SRGSCompiler.cs
- FormsAuthenticationModule.cs
- _SslStream.cs
- BamlTreeNode.cs