Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Core / System / Windows / Media / SkewTransform.cs / 1 / SkewTransform.cs
//------------------------------------------------------------------------------ // Microsoft Avalon // Copyright (c) Microsoft Corporation, 2001 // // File: SkewTransform.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 skew X transformation. /// public sealed partial class SkewTransform : Transform { ////// /// public SkewTransform() { } ////// /// public SkewTransform(double angleX, double angleY) { AngleX = angleX; AngleY = angleY; } ////// /// public SkewTransform(double angleX, double angleY, double centerX, double centerY) : this(angleX, angleY) { CenterX = centerX; CenterY = centerY; } ////// Return the current transformation value. /// public override Matrix Value { get { ReadPreamble(); Matrix matrix = new Matrix(); double angleX = AngleX; double angleY = AngleY; double centerX = CenterX; double centerY = CenterY; bool hasCenter = centerX != 0 || centerY != 0; if (hasCenter) { matrix.Translate(-centerX, -centerY); } matrix.Skew(angleX, angleY); if (hasCenter) { matrix.Translate(centerX, centerY); } return matrix; } } ////// Returns true if transformation matches the identity transform. /// internal override bool IsIdentity { get { return AngleX == 0 && AngleY == 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
- XmlSchemaAppInfo.cs
- ObjectAssociationEndMapping.cs
- ExtensionQuery.cs
- TextTreeNode.cs
- ScriptingScriptResourceHandlerSection.cs
- MutexSecurity.cs
- WebGetAttribute.cs
- TextEndOfParagraph.cs
- SqlRecordBuffer.cs
- ActivityExecutionContextCollection.cs
- RuntimeResourceSet.cs
- XmlSchemaObjectCollection.cs
- UInt16.cs
- XmlSignatureProperties.cs
- PropertyMetadata.cs
- ToolStripDropDownClosingEventArgs.cs
- SimpleTableProvider.cs
- DataGridViewLinkColumn.cs
- XamlSerializationHelper.cs
- TextModifier.cs
- ReceiveReply.cs
- NodeInfo.cs
- DiagnosticsConfigurationHandler.cs
- ContractMapping.cs
- ProfileManager.cs
- GridViewColumnHeaderAutomationPeer.cs
- ExtenderControl.cs
- COM2PictureConverter.cs
- FixedTextContainer.cs
- EncryptedKey.cs
- TreeNode.cs
- OrderedHashRepartitionStream.cs
- HandleExceptionArgs.cs
- StateDesigner.CommentLayoutGlyph.cs
- DesignBindingPicker.cs
- ColorAnimation.cs
- OracleTimeSpan.cs
- ResourcePart.cs
- COAUTHINFO.cs
- CodeIdentifier.cs
- CounterCreationData.cs
- AppDomain.cs
- SafeNativeMethods.cs
- __Filters.cs
- SolidBrush.cs
- CommandBinding.cs
- XmlSignificantWhitespace.cs
- TableItemProviderWrapper.cs
- QuestionEventArgs.cs
- Not.cs
- MatchingStyle.cs
- UserPreferenceChangedEventArgs.cs
- AssemblyAssociatedContentFileAttribute.cs
- MetadataFile.cs
- ObjectSecurity.cs
- OdbcStatementHandle.cs
- SrgsItemList.cs
- SymLanguageType.cs
- httpserverutility.cs
- LinkClickEvent.cs
- TouchFrameEventArgs.cs
- MetadataItemEmitter.cs
- StretchValidation.cs
- ConfigXmlAttribute.cs
- GridViewRowPresenter.cs
- NumberAction.cs
- CombinedHttpChannel.cs
- DynamicRendererThreadManager.cs
- AnonymousIdentificationModule.cs
- httpapplicationstate.cs
- BoolExpr.cs
- Operators.cs
- HttpListenerContext.cs
- CornerRadius.cs
- TdsValueSetter.cs
- WebPartEventArgs.cs
- MsmqChannelListenerBase.cs
- PathGeometry.cs
- BindingsCollection.cs
- _NegoState.cs
- CodeExporter.cs
- TextDpi.cs
- SoundPlayer.cs
- WriteTimeStream.cs
- Point3DIndependentAnimationStorage.cs
- XsltOutput.cs
- SelectedGridItemChangedEvent.cs
- TemplatePropertyEntry.cs
- HitTestWithPointDrawingContextWalker.cs
- OleDbConnectionFactory.cs
- X509CertificateInitiatorServiceCredential.cs
- LoginCancelEventArgs.cs
- OdbcConnectionOpen.cs
- JsonWriter.cs
- RedistVersionInfo.cs
- XmlEventCache.cs
- AutomationElementCollection.cs
- ProfileBuildProvider.cs
- DynamicDataRouteHandler.cs
- PageCatalogPart.cs