Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- NetworkAddressChange.cs
- EnumType.cs
- BroadcastEventHelper.cs
- ComplexTypeEmitter.cs
- TextBoxView.cs
- StrongNameKeyPair.cs
- VectorAnimation.cs
- GridItemCollection.cs
- FilterQueryOptionExpression.cs
- ListViewGroupConverter.cs
- BooleanConverter.cs
- DataObjectFieldAttribute.cs
- COAUTHIDENTITY.cs
- RenderOptions.cs
- AddInActivator.cs
- _Rfc2616CacheValidators.cs
- FocusWithinProperty.cs
- ErrorTableItemStyle.cs
- DateTimeConstantAttribute.cs
- MessagePropertyFilter.cs
- SqlOuterApplyReducer.cs
- DataGridViewRowConverter.cs
- ResourceExpressionEditor.cs
- SelectionService.cs
- ProxyHelper.cs
- Repeater.cs
- XmlBinaryReader.cs
- XmlCharType.cs
- EntityDataSourceChangingEventArgs.cs
- DataGridViewColumnTypePicker.cs
- DataBinding.cs
- ExtensibleClassFactory.cs
- TemplatedWizardStep.cs
- HttpModulesSection.cs
- DetailsViewPageEventArgs.cs
- ProxySimple.cs
- StandardOleMarshalObject.cs
- DataControlPagerLinkButton.cs
- NativeMethods.cs
- WindowsSpinner.cs
- RangeBase.cs
- RepeatButton.cs
- ManipulationDevice.cs
- Collection.cs
- SmiContext.cs
- HashHelper.cs
- AnnouncementEndpointElement.cs
- Route.cs
- IDispatchConstantAttribute.cs
- StateWorkerRequest.cs
- PerformanceCounter.cs
- DataObjectPastingEventArgs.cs
- NullRuntimeConfig.cs
- GradientStopCollection.cs
- TransactionManager.cs
- ComponentDispatcher.cs
- OrderedDictionary.cs
- Cell.cs
- XmlDownloadManager.cs
- Message.cs
- InvokeAction.cs
- DropAnimation.xaml.cs
- FormViewUpdatedEventArgs.cs
- ListViewGroupConverter.cs
- TargetException.cs
- TextTreeTextNode.cs
- ConfigXmlCDataSection.cs
- Ipv6Element.cs
- _ScatterGatherBuffers.cs
- StaticDataManager.cs
- NamespaceEmitter.cs
- PatternMatcher.cs
- JapaneseLunisolarCalendar.cs
- XsltInput.cs
- PermissionSet.cs
- ListParaClient.cs
- ControlBuilderAttribute.cs
- XmlWriterSettings.cs
- DefaultHttpHandler.cs
- DataServiceProcessingPipeline.cs
- SqlClientWrapperSmiStream.cs
- CallbackValidatorAttribute.cs
- StringUtil.cs
- Debug.cs
- Point4DValueSerializer.cs
- Rijndael.cs
- ComponentConverter.cs
- Listbox.cs
- UserControlParser.cs
- ConfigXmlAttribute.cs
- SQLInt16.cs
- TemplateContentLoader.cs
- BamlLocalizabilityResolver.cs
- Visitor.cs
- basecomparevalidator.cs
- MimeMapping.cs
- HttpGetServerProtocol.cs
- AsyncSerializedWorker.cs
- SiteMapNodeItem.cs
- NativeMethods.cs