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
- AttachmentService.cs
- ApplicationId.cs
- TypeUsage.cs
- IProducerConsumerCollection.cs
- TextEditorTyping.cs
- GeneralTransformGroup.cs
- SerialPinChanges.cs
- DictionaryCustomTypeDescriptor.cs
- precedingsibling.cs
- DataTableCollection.cs
- NamedPipeProcessProtocolHandler.cs
- UrlAuthorizationModule.cs
- DataGridViewCellValueEventArgs.cs
- ModelServiceImpl.cs
- DefaultShape.cs
- AdRotatorDesigner.cs
- CompiledIdentityConstraint.cs
- RecognizerStateChangedEventArgs.cs
- BackStopAuthenticationModule.cs
- VersionedStreamOwner.cs
- TextEncodedRawTextWriter.cs
- XmlAttributeHolder.cs
- AssemblyCache.cs
- HttpServerProtocol.cs
- SolidColorBrush.cs
- OutputCacheSettings.cs
- GorillaCodec.cs
- AuthenticationSection.cs
- ModelUIElement3D.cs
- WindowsSpinner.cs
- CorrelationQueryBehavior.cs
- DefaultTextStoreTextComposition.cs
- GuidConverter.cs
- NetworkInformationPermission.cs
- OrderedDictionary.cs
- FormViewInsertEventArgs.cs
- XmlComplianceUtil.cs
- ObjectComplexPropertyMapping.cs
- AnimationException.cs
- NonDualMessageSecurityOverHttp.cs
- XmlAnyAttributeAttribute.cs
- NeutralResourcesLanguageAttribute.cs
- HandlerFactoryWrapper.cs
- CleanUpVirtualizedItemEventArgs.cs
- newinstructionaction.cs
- EnglishPluralizationService.cs
- DateTimeOffset.cs
- ScrollBar.cs
- CheckBoxRenderer.cs
- SessionStateUtil.cs
- AssemblyBuilderData.cs
- SchemaImporterExtension.cs
- JsonReader.cs
- ConditionalBranch.cs
- MessageBox.cs
- GenericWebPart.cs
- _AutoWebProxyScriptWrapper.cs
- DES.cs
- DateTimeConstantAttribute.cs
- SystemTcpConnection.cs
- GetWinFXPath.cs
- ForceCopyBuildProvider.cs
- StateChangeEvent.cs
- KeyValuePair.cs
- EventArgs.cs
- RegistrationServices.cs
- WmlLabelAdapter.cs
- TimerExtension.cs
- GeneralTransform3DCollection.cs
- PointKeyFrameCollection.cs
- PreviewKeyDownEventArgs.cs
- TypeSystem.cs
- MarshalByRefObject.cs
- DateBoldEvent.cs
- InkCanvasSelectionAdorner.cs
- WithParamAction.cs
- DialogResultConverter.cs
- ColumnMapProcessor.cs
- DataGridViewCellConverter.cs
- WpfKnownTypeInvoker.cs
- SettingsBindableAttribute.cs
- WorkflowViewService.cs
- EntryPointNotFoundException.cs
- Selector.cs
- FileIOPermission.cs
- EventDescriptorCollection.cs
- UIElementParaClient.cs
- DecimalKeyFrameCollection.cs
- StateRuntime.cs
- EntityTypeBase.cs
- ProvidePropertyAttribute.cs
- ControlTemplate.cs
- TagPrefixAttribute.cs
- _LocalDataStore.cs
- GridLengthConverter.cs
- DropDownList.cs
- TableDetailsRow.cs
- metadatamappinghashervisitor.hashsourcebuilder.cs
- ITextView.cs
- prompt.cs