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
- WindowsRichEdit.cs
- WebBrowserUriTypeConverter.cs
- CommonObjectSecurity.cs
- _SecureChannel.cs
- DataProviderNameConverter.cs
- NoPersistScope.cs
- StringDictionary.cs
- ObjectParameter.cs
- XMLSyntaxException.cs
- AlphabeticalEnumConverter.cs
- ValueType.cs
- RtType.cs
- CopyOnWriteList.cs
- WindowAutomationPeer.cs
- Site.cs
- VoiceObjectToken.cs
- CryptographicAttribute.cs
- FrameworkTextComposition.cs
- ProxyWebPart.cs
- ResourceDescriptionAttribute.cs
- TableLayout.cs
- MimeImporter.cs
- WpfPayload.cs
- DataGridViewCellLinkedList.cs
- Helper.cs
- MemberJoinTreeNode.cs
- Rules.cs
- TextUtf8RawTextWriter.cs
- FileAuthorizationModule.cs
- SHA256Managed.cs
- DBDataPermissionAttribute.cs
- RequestCachePolicyConverter.cs
- CaseInsensitiveOrdinalStringComparer.cs
- RequiredFieldValidator.cs
- TextTreePropertyUndoUnit.cs
- EncryptedType.cs
- ApplicationBuildProvider.cs
- HtmlContainerControl.cs
- Ticks.cs
- PropertyGroupDescription.cs
- RegexRunnerFactory.cs
- StrongNamePublicKeyBlob.cs
- Int16.cs
- DataFormats.cs
- TableRow.cs
- RoutedEventArgs.cs
- ParsedAttributeCollection.cs
- ListBindingHelper.cs
- WebBrowserUriTypeConverter.cs
- SqlStream.cs
- ConstructorBuilder.cs
- IISUnsafeMethods.cs
- ZipIOCentralDirectoryBlock.cs
- _PooledStream.cs
- CookieProtection.cs
- ZipIOLocalFileDataDescriptor.cs
- SystemIPInterfaceStatistics.cs
- ComboBoxRenderer.cs
- WebContext.cs
- BitmapEffectDrawing.cs
- DataPagerField.cs
- ParenExpr.cs
- TextModifier.cs
- Workspace.cs
- ResolveRequestResponseAsyncResult.cs
- followingquery.cs
- TreeNodeCollectionEditor.cs
- UrlAuthFailedErrorFormatter.cs
- RelationshipWrapper.cs
- CipherData.cs
- SubqueryRules.cs
- NetworkInterface.cs
- CroppedBitmap.cs
- ColumnTypeConverter.cs
- FormatSettings.cs
- WebPartEditorCancelVerb.cs
- InkCanvasInnerCanvas.cs
- ConvertersCollection.cs
- SqlSupersetValidator.cs
- DefaultEvaluationContext.cs
- ChannelManagerBase.cs
- COM2IProvidePropertyBuilderHandler.cs
- OleDbDataAdapter.cs
- PropertyGroupDescription.cs
- WindowsRegion.cs
- ListViewItemSelectionChangedEvent.cs
- TextSelection.cs
- EntitySetBase.cs
- WriteableBitmap.cs
- SqlBinder.cs
- ExternalFile.cs
- PathTooLongException.cs
- LongValidatorAttribute.cs
- MailSettingsSection.cs
- InkPresenter.cs
- ConfigurationSchemaErrors.cs
- ExceptionValidationRule.cs
- KeyNotFoundException.cs
- SmiMetaData.cs
- WebPartVerbCollection.cs