Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeTypeReferenceExpression.cs
- EncoderExceptionFallback.cs
- StreamWriter.cs
- SecurityTokenValidationException.cs
- SecurityChannelFactory.cs
- MoveSizeWinEventHandler.cs
- BitmapEffectDrawingContent.cs
- BamlWriter.cs
- MobileErrorInfo.cs
- IconHelper.cs
- LinkTarget.cs
- DataSourceView.cs
- Version.cs
- TypographyProperties.cs
- ParallelActivityDesigner.cs
- OleDbRowUpdatedEvent.cs
- CompiledQueryCacheEntry.cs
- ElementsClipboardData.cs
- XmlChoiceIdentifierAttribute.cs
- IndicFontClient.cs
- VisualBrush.cs
- FlowDocumentPage.cs
- Bitmap.cs
- Positioning.cs
- SHA512.cs
- DataObjectEventArgs.cs
- ImmutableDispatchRuntime.cs
- TextBox.cs
- SafeRightsManagementPubHandle.cs
- IdentityValidationException.cs
- IPEndPointCollection.cs
- RegexWorker.cs
- Misc.cs
- TransformValueSerializer.cs
- XmlDocumentSurrogate.cs
- StateMachineDesignerPaint.cs
- TableColumnCollection.cs
- PriorityRange.cs
- StaticExtension.cs
- HttpProfileGroupBase.cs
- OdbcConnectionHandle.cs
- SchemaLookupTable.cs
- CodePrimitiveExpression.cs
- coordinator.cs
- DataSetMappper.cs
- ExpandableObjectConverter.cs
- MdiWindowListItemConverter.cs
- ComponentManagerBroker.cs
- RtfControls.cs
- _LazyAsyncResult.cs
- FontFamily.cs
- EventBookmark.cs
- AttributeCollection.cs
- IndependentAnimationStorage.cs
- StreamWriter.cs
- BitmapData.cs
- MenuItem.cs
- ClientBuildManagerCallback.cs
- DefaultTextStore.cs
- AnnotationAdorner.cs
- StagingAreaInputItem.cs
- DataControlCommands.cs
- TransactionScope.cs
- AutoResetEvent.cs
- DockPanel.cs
- PersistNameAttribute.cs
- HtmlSelect.cs
- cookiecollection.cs
- KeyValueConfigurationCollection.cs
- ReadOnlyDataSourceView.cs
- BindingList.cs
- TextTreePropertyUndoUnit.cs
- AutomationElementIdentifiers.cs
- ColorTranslator.cs
- EncoderFallback.cs
- ScrollViewer.cs
- _ListenerRequestStream.cs
- RootNamespaceAttribute.cs
- GZipUtils.cs
- SettingsProviderCollection.cs
- indexingfiltermarshaler.cs
- DecodeHelper.cs
- GenericsInstances.cs
- SystemResourceKey.cs
- InputDevice.cs
- IResourceProvider.cs
- HighContrastHelper.cs
- ThousandthOfEmRealDoubles.cs
- DrawListViewSubItemEventArgs.cs
- TaskFileService.cs
- SQlBooleanStorage.cs
- SqlAliaser.cs
- BinaryParser.cs
- MemberMemberBinding.cs
- URLIdentityPermission.cs
- QilUnary.cs
- X509Utils.cs
- WebPartTransformer.cs
- DataConnectionHelper.cs
- ParagraphVisual.cs