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
- SimpleApplicationHost.cs
- TabPageDesigner.cs
- ReservationNotFoundException.cs
- FactoryId.cs
- XPathDocumentNavigator.cs
- NameValuePair.cs
- mediaeventargs.cs
- EntityRecordInfo.cs
- WebPartConnectionsConfigureVerb.cs
- MimeObjectFactory.cs
- SnapshotChangeTrackingStrategy.cs
- EventManager.cs
- DrawingGroup.cs
- CodeExporter.cs
- SimpleHandlerBuildProvider.cs
- TextTreeRootTextBlock.cs
- RuntimeHandles.cs
- DesignerActionItemCollection.cs
- SystemUnicastIPAddressInformation.cs
- Emitter.cs
- DiscoveryDocumentLinksPattern.cs
- ProviderManager.cs
- ExceptionRoutedEventArgs.cs
- UdpTransportSettingsElement.cs
- XmlSchemaComplexContent.cs
- SQLInt16.cs
- InkPresenter.cs
- ScriptResourceInfo.cs
- DoubleAnimationUsingPath.cs
- PersonalizationProviderHelper.cs
- ContentTextAutomationPeer.cs
- SQLDoubleStorage.cs
- ListView.cs
- ConsoleKeyInfo.cs
- WebPartTransformerCollection.cs
- ChtmlCalendarAdapter.cs
- DoubleKeyFrameCollection.cs
- DisposableCollectionWrapper.cs
- StructuredTypeEmitter.cs
- MatrixTransform3D.cs
- ViewDesigner.cs
- SpinLock.cs
- RegexCapture.cs
- MethodBody.cs
- DiagnosticsConfiguration.cs
- TextSimpleMarkerProperties.cs
- DrawingVisual.cs
- CounterSet.cs
- DrawingContextWalker.cs
- DataSourceBooleanViewSchemaConverter.cs
- UnsafeNativeMethods.cs
- ScrollChrome.cs
- PeerTransportElement.cs
- ProgressBar.cs
- Comparer.cs
- NameValueCollection.cs
- MachineSettingsSection.cs
- HttpHostedTransportConfiguration.cs
- TypeUnloadedException.cs
- RenderOptions.cs
- StructuredTypeEmitter.cs
- SqlCachedBuffer.cs
- LoggedException.cs
- CompletionProxy.cs
- Vector3dCollection.cs
- FramingEncoders.cs
- MessageSecurityOverHttp.cs
- TextSpan.cs
- StatusStrip.cs
- Graphics.cs
- Camera.cs
- ClientFormsIdentity.cs
- ControlDesigner.cs
- BamlLocalizableResourceKey.cs
- Quad.cs
- TrackingProfile.cs
- sitestring.cs
- RtfFormatStack.cs
- DBBindings.cs
- Span.cs
- x509store.cs
- ObjectSelectorEditor.cs
- SystemWebCachingSectionGroup.cs
- FactoryGenerator.cs
- ViewCellRelation.cs
- shaperfactory.cs
- ThreadPoolTaskScheduler.cs
- PackageProperties.cs
- XamlSerializer.cs
- StringBuilder.cs
- ResourcesBuildProvider.cs
- CompoundFileStorageReference.cs
- Assert.cs
- FastPropertyAccessor.cs
- SemanticResolver.cs
- ElementNotAvailableException.cs
- SecurityAppliedMessage.cs
- WindowsStartMenu.cs
- WebPartExportVerb.cs
- RSAPKCS1SignatureDeformatter.cs