Share via


Transform Object (Abstract)

Defines functionality that enables transformations in a 2-D plane. Transformations include rotation (RotateTransform), scale (ScaleTransform), skew (SkewTransform), and translation (TranslateTransform).

XAML
Must use derived objects.
Scripting
Must use derived objects.

Properties

Name

Methods

Equals, FindName, GetHost, GetValue, SetValue

Derived Objects

RotateTransform, ScaleTransform, SkewTransform, TranslateTransform, MatrixTransform, TransformGroup

Remarks

For XAML syntaxes that take a Transform, you need to specify a nonabstract derived type of Transform as an object element. For details, see the XAML syntax on the reference pages for MatrixTransform, RotateTransform, ScaleTransform, SkewTransform, TransformGroup, and TranslateTransform.

Use the MatrixTransform class to create custom transformations that are not provided by the RotateTransform, ScaleTransform, SkewTransform, and TranslateTransform classes.

A 2-D x-y plane uses a 3x3 matrix for transformations. You can multiply affine transformation matrices to form linear transformations, such as rotation and skew (shear) that are followed by translation.

An affine transformation matrix has its final column equal to (0, 0, 1); therefore, you only have to specify the members in the first two columns.

You cannot extract the matrix-specific information from the non-matrix transformations. However you can adjust the non-matrix transformations with their specific properties, or replace a transformation with a matrix transformation at runtime.

See Also

Transform Overview