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
- BitmapEffectrendercontext.cs
- InProcStateClientManager.cs
- XmlSchemaInclude.cs
- SingleBodyParameterMessageFormatter.cs
- ExtensibleClassFactory.cs
- RenderingBiasValidation.cs
- ByteConverter.cs
- UserControl.cs
- GuidTagList.cs
- DynamicMethod.cs
- Win32.cs
- ValidatingPropertiesEventArgs.cs
- WebPartConnectVerb.cs
- WebAdminConfigurationHelper.cs
- BamlResourceDeserializer.cs
- HwndSource.cs
- PartialList.cs
- LightweightEntityWrapper.cs
- XmlSignatureManifest.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- odbcmetadatacollectionnames.cs
- D3DImage.cs
- MailMessage.cs
- ModuleConfigurationInfo.cs
- DataGridViewCheckBoxCell.cs
- Keyboard.cs
- ExpressionPrefixAttribute.cs
- Vertex.cs
- SystemUdpStatistics.cs
- PageAsyncTaskManager.cs
- OracleEncoding.cs
- DefaultValueAttribute.cs
- Help.cs
- ClickablePoint.cs
- InArgument.cs
- BounceEase.cs
- NativeCompoundFileAPIs.cs
- IisTraceWebEventProvider.cs
- ConfigPathUtility.cs
- ModelItemDictionaryImpl.cs
- DataGridViewLinkColumn.cs
- smtppermission.cs
- LineSegment.cs
- PbrsForward.cs
- UnmanagedMemoryStreamWrapper.cs
- TextBox.cs
- NativeCompoundFileAPIs.cs
- BuilderPropertyEntry.cs
- DataBoundControlHelper.cs
- ServiceBusyException.cs
- WindowVisualStateTracker.cs
- WebPartHeaderCloseVerb.cs
- GlobalProxySelection.cs
- StorageSetMapping.cs
- EditableLabelControl.cs
- LayoutInformation.cs
- SecurityDescriptor.cs
- OperationAbortedException.cs
- EventLogPermissionHolder.cs
- VisualTarget.cs
- XmlTextReader.cs
- QilDataSource.cs
- PlainXmlDeserializer.cs
- GeometryValueSerializer.cs
- GeneralTransform3DTo2DTo3D.cs
- ControlAdapter.cs
- WpfXamlLoader.cs
- MimeMultiPart.cs
- VerificationAttribute.cs
- DirectionalAction.cs
- SurrogateChar.cs
- WorkflowApplicationException.cs
- HtmlInputImage.cs
- ValidateNames.cs
- XamlBuildTaskServices.cs
- ExceptionUtil.cs
- UserMapPath.cs
- EdmScalarPropertyAttribute.cs
- EventToken.cs
- CodePrimitiveExpression.cs
- TailPinnedEventArgs.cs
- TargetPerspective.cs
- Buffer.cs
- DataTableTypeConverter.cs
- TabControlEvent.cs
- Journal.cs
- EditorZoneBase.cs
- EncoderReplacementFallback.cs
- CategoryAttribute.cs
- ProcessThread.cs
- XmlSchemaExternal.cs
- InvalidCastException.cs
- SkewTransform.cs
- EditingMode.cs
- MainMenu.cs
- DataPager.cs
- SimpleFieldTemplateUserControl.cs
- IncomingWebRequestContext.cs
- IndexedSelectQueryOperator.cs
- SocketManager.cs