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
- BStrWrapper.cs
- ComplexType.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DateTimeOffset.cs
- SegmentTree.cs
- RemoteWebConfigurationHost.cs
- AudioStateChangedEventArgs.cs
- PropertyMetadata.cs
- LambdaCompiler.Expressions.cs
- ResourceDictionaryCollection.cs
- CodeSubDirectory.cs
- MailAddressCollection.cs
- MenuItemStyle.cs
- TrustLevel.cs
- DateTimeOffsetStorage.cs
- CancelEventArgs.cs
- ObjectListCommandEventArgs.cs
- WebPartConnectionsDisconnectVerb.cs
- SeparatorAutomationPeer.cs
- DesigntimeLicenseContextSerializer.cs
- OneOfConst.cs
- _WebProxyDataBuilder.cs
- RightsManagementEncryptedStream.cs
- ToolStripComboBox.cs
- OverflowException.cs
- ResourceAttributes.cs
- CloseSequence.cs
- Stopwatch.cs
- ExpressionVisitorHelpers.cs
- Transform3D.cs
- Point3DConverter.cs
- XmlNodeChangedEventManager.cs
- QueueException.cs
- WebPartPersonalization.cs
- InternalConfigEventArgs.cs
- TextServicesHost.cs
- TrustLevelCollection.cs
- DllNotFoundException.cs
- DynamicControlParameter.cs
- Vector3DCollectionConverter.cs
- CodeExporter.cs
- XmlAggregates.cs
- TagPrefixAttribute.cs
- FunctionUpdateCommand.cs
- XPathArrayIterator.cs
- LineSegment.cs
- ImageClickEventArgs.cs
- xsdvalidator.cs
- LayoutSettings.cs
- SafeEventLogReadHandle.cs
- SystemIPAddressInformation.cs
- XmlNamespaceMappingCollection.cs
- EmbeddedObject.cs
- HtmlSelect.cs
- BinHexEncoder.cs
- ParserExtension.cs
- HttpApplicationFactory.cs
- CookieParameter.cs
- Win32PrintDialog.cs
- ClientSideQueueItem.cs
- ToolStripSplitButton.cs
- ProjectionPruner.cs
- DataViewManagerListItemTypeDescriptor.cs
- PrintPreviewControl.cs
- TextMarkerSource.cs
- CheckBoxPopupAdapter.cs
- Accessible.cs
- TemplateField.cs
- BitmapEncoder.cs
- DeviceContext.cs
- FrameworkTemplate.cs
- ImageBrush.cs
- TargetConverter.cs
- ProcessManager.cs
- ParamArrayAttribute.cs
- ExpressionBindings.cs
- InplaceBitmapMetadataWriter.cs
- Help.cs
- ColumnCollection.cs
- StateBag.cs
- CodeThrowExceptionStatement.cs
- MenuRenderer.cs
- MultiTargetingUtil.cs
- _AutoWebProxyScriptWrapper.cs
- AgileSafeNativeMemoryHandle.cs
- XhtmlBasicFormAdapter.cs
- RequestUriProcessor.cs
- UserPreferenceChangedEventArgs.cs
- EndpointDispatcher.cs
- Variant.cs
- XPathNodeIterator.cs
- Content.cs
- StringToken.cs
- PrincipalPermission.cs
- SuppressMergeCheckAttribute.cs
- ToolStripItem.cs
- NetMsmqSecurity.cs
- InstanceOwner.cs
- Run.cs
- GridLengthConverter.cs