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
- PeerNameRecordCollection.cs
- QuaternionAnimation.cs
- RangeValidator.cs
- EntitySqlQueryState.cs
- TraceShell.cs
- InternalCache.cs
- StringUtil.cs
- DetailsViewInsertEventArgs.cs
- SoapProcessingBehavior.cs
- HttpListenerException.cs
- RegexCode.cs
- RequestCacheValidator.cs
- RedirectionProxy.cs
- ReachFixedPageSerializer.cs
- ProtocolsConfiguration.cs
- ColorConverter.cs
- RubberbandSelector.cs
- ToolStripRenderer.cs
- GCHandleCookieTable.cs
- InkPresenterAutomationPeer.cs
- DecimalFormatter.cs
- FigureHelper.cs
- EventDescriptor.cs
- TextRunProperties.cs
- FixedSOMPageConstructor.cs
- InheritanceRules.cs
- DiscoveryReferences.cs
- Timer.cs
- COM2IPerPropertyBrowsingHandler.cs
- RightsController.cs
- InlineObject.cs
- TypedDataSetSchemaImporterExtensionFx35.cs
- CompiledAction.cs
- GrammarBuilderDictation.cs
- FunctionImportElement.cs
- TrackPointCollection.cs
- TTSVoice.cs
- DataGridViewImageColumn.cs
- Util.cs
- RuntimeHelpers.cs
- CodeAttributeDeclarationCollection.cs
- TransformerConfigurationWizardBase.cs
- HttpProfileGroupBase.cs
- SchemaHelper.cs
- QueryableFilterUserControl.cs
- DiagnosticTrace.cs
- PageAsyncTask.cs
- MetadataPropertyvalue.cs
- CalendarDataBindingHandler.cs
- ControlCollection.cs
- UInt32Storage.cs
- PathTooLongException.cs
- XmlSchemaSimpleContentExtension.cs
- ToolStripScrollButton.cs
- HttpPostedFile.cs
- MimeXmlImporter.cs
- EntityModelSchemaGenerator.cs
- HandlerFactoryCache.cs
- NativeBuffer.cs
- DefaultIfEmptyQueryOperator.cs
- Documentation.cs
- FileDialogCustomPlace.cs
- PeerNodeAddress.cs
- DBSqlParserTableCollection.cs
- Transform.cs
- TextParagraphCache.cs
- MetadataSerializer.cs
- SoapFault.cs
- TagNameToTypeMapper.cs
- XmlSchemas.cs
- SafeEventLogWriteHandle.cs
- SqlInternalConnection.cs
- SQLDateTime.cs
- HtmlInputRadioButton.cs
- JavaScriptObjectDeserializer.cs
- GACIdentityPermission.cs
- localization.cs
- FromRequest.cs
- VerticalAlignConverter.cs
- LinqDataSourceContextData.cs
- DbExpressionVisitor.cs
- CommentAction.cs
- BitmapInitialize.cs
- XsltSettings.cs
- _OSSOCK.cs
- ToolStripSeparator.cs
- XmlSerializerFactory.cs
- RightsManagementInformation.cs
- PermissionSetEnumerator.cs
- DelegateBodyWriter.cs
- SmiSettersStream.cs
- HttpApplicationFactory.cs
- TransformationRules.cs
- Brushes.cs
- AxWrapperGen.cs
- XamlBuildTaskServices.cs
- LinkLabel.cs
- KnownAssemblyEntry.cs
- HotSpot.cs
- RequestCacheEntry.cs