Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Media / SkewTransform.cs / 1305600 / 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
- LinkConverter.cs
- OverflowException.cs
- ExceptionUtil.cs
- Vector3dCollection.cs
- DifferencingCollection.cs
- RegexStringValidatorAttribute.cs
- CreateParams.cs
- GridViewSortEventArgs.cs
- IdnMapping.cs
- DataControlPagerLinkButton.cs
- DecoderFallback.cs
- HtmlTableRowCollection.cs
- ComboBox.cs
- WebPartEditorCancelVerb.cs
- DataTableCollection.cs
- MethodExpr.cs
- Vector.cs
- Brush.cs
- InputLanguageSource.cs
- ThicknessAnimationBase.cs
- DropSource.cs
- ZoneIdentityPermission.cs
- AuthenticationService.cs
- StringUtil.cs
- ZoneIdentityPermission.cs
- FormViewDeleteEventArgs.cs
- XmlAnyElementAttributes.cs
- ProfileSettingsCollection.cs
- DecimalStorage.cs
- SecurityException.cs
- DeviceSpecificDialogCachedState.cs
- TagPrefixAttribute.cs
- RbTree.cs
- WebPartEditorCancelVerb.cs
- CompiledQuery.cs
- UriSectionData.cs
- Unit.cs
- Stroke2.cs
- MembershipValidatePasswordEventArgs.cs
- QueryStringHandler.cs
- AssertFilter.cs
- SQLByteStorage.cs
- StringFunctions.cs
- DtdParser.cs
- Menu.cs
- SystemTcpStatistics.cs
- UrlPath.cs
- Underline.cs
- UnitySerializationHolder.cs
- RelatedEnd.cs
- RotationValidation.cs
- ToolStripManager.cs
- WebContext.cs
- StreamGeometryContext.cs
- VectorCollectionConverter.cs
- TreeWalker.cs
- StdValidatorsAndConverters.cs
- ToggleButton.cs
- StyleCollectionEditor.cs
- BitmapImage.cs
- ServiceProviders.cs
- ToolStripItemClickedEventArgs.cs
- ValidationSummary.cs
- Timeline.cs
- WebUtil.cs
- WorkflowWebHostingModule.cs
- DoubleKeyFrameCollection.cs
- BinaryReader.cs
- TraceLevelStore.cs
- LinkLabel.cs
- XmlComment.cs
- ReferentialConstraint.cs
- PtsHost.cs
- BookmarkList.cs
- BoundField.cs
- CmsInterop.cs
- OutOfMemoryException.cs
- SqlRewriteScalarSubqueries.cs
- BaseTemplateParser.cs
- BasicBrowserDialog.designer.cs
- TemplateParser.cs
- XmlSchemaDocumentation.cs
- SectionXmlInfo.cs
- ElementProxy.cs
- CommonGetThemePartSize.cs
- ContextMenuStrip.cs
- CaseStatement.cs
- XPathPatternParser.cs
- WebPartCatalogAddVerb.cs
- DocumentViewer.cs
- PrtCap_Reader.cs
- ByteKeyFrameCollection.cs
- XomlSerializationHelpers.cs
- RuntimeConfigLKG.cs
- WebBrowserContainer.cs
- HtmlInputText.cs
- SubqueryRules.cs
- TopClause.cs
- GestureRecognitionResult.cs
- log.cs