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
- GlobalProxySelection.cs
- XmlTextEncoder.cs
- Form.cs
- SafeEventLogWriteHandle.cs
- MatrixAnimationUsingPath.cs
- Size3DConverter.cs
- PackageDigitalSignatureManager.cs
- ClipboardProcessor.cs
- StringUtil.cs
- BindingGroup.cs
- Assembly.cs
- CompositeActivityMarkupSerializer.cs
- DataGridViewColumnDesignTimeVisibleAttribute.cs
- VisualStateManager.cs
- SystemIPAddressInformation.cs
- ProfessionalColorTable.cs
- CrossSiteScriptingValidation.cs
- ManualResetEvent.cs
- TrustExchangeException.cs
- UIElementParagraph.cs
- CustomTokenProvider.cs
- PartialCachingAttribute.cs
- ChtmlPageAdapter.cs
- Encoding.cs
- TableCellCollection.cs
- AppAction.cs
- EventOpcode.cs
- RegexCaptureCollection.cs
- EndGetFileNameFromUserRequest.cs
- LocationReference.cs
- Duration.cs
- StylusSystemGestureEventArgs.cs
- RemotingConfiguration.cs
- GetPageCompletedEventArgs.cs
- TileBrush.cs
- ExpandedProjectionNode.cs
- FullTextBreakpoint.cs
- Match.cs
- OdbcCommand.cs
- UInt32.cs
- GroupBox.cs
- DataGridColumn.cs
- NetNamedPipeSecurityElement.cs
- PreviewKeyDownEventArgs.cs
- JpegBitmapDecoder.cs
- CustomErrorCollection.cs
- Resources.Designer.cs
- XmlWriter.cs
- DeclaredTypeElementCollection.cs
- DrawingCollection.cs
- FontUnitConverter.cs
- TemplateBamlRecordReader.cs
- PersistChildrenAttribute.cs
- SrgsRulesCollection.cs
- FrameworkRichTextComposition.cs
- filewebresponse.cs
- CompareInfo.cs
- SecurityHeader.cs
- RegionData.cs
- ScriptReferenceBase.cs
- FontResourceCache.cs
- NativeMethodsCLR.cs
- TextEmbeddedObject.cs
- CodeDirectionExpression.cs
- bindurihelper.cs
- BitmapDownload.cs
- NetworkCredential.cs
- TextCompositionManager.cs
- SiteMapNodeItemEventArgs.cs
- VSWCFServiceContractGenerator.cs
- UniqueConstraint.cs
- InputProcessorProfiles.cs
- TdsParserSafeHandles.cs
- QueryOutputWriter.cs
- WebDescriptionAttribute.cs
- Ops.cs
- regiisutil.cs
- TextProperties.cs
- BitmapPalettes.cs
- SizeChangedEventArgs.cs
- HttpContext.cs
- CatalogZoneBase.cs
- MergeFailedEvent.cs
- XmlWrappingReader.cs
- milexports.cs
- FormatterServices.cs
- QueryInterceptorAttribute.cs
- CodeSpit.cs
- SystemIPv4InterfaceProperties.cs
- SerializationStore.cs
- TimeSpanMinutesConverter.cs
- DLinqTableProvider.cs
- FamilyTypefaceCollection.cs
- EmptyQuery.cs
- StatusBar.cs
- SiteMapProvider.cs
- PermissionListSet.cs
- OutputCacheProfileCollection.cs
- ClientUtils.cs
- CombinedHttpChannel.cs