Class Transform
Defines functionality that enables transformations in a two-dimensional plane.
Inheritance
System.Object
Transform
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public abstract class Transform : GeneralTransform, IDependencyObject
Properties
| Improve this Doc View SourceInverse
Gets the inverse of this transform, if it exists.
Declaration
public override GeneralTransform Inverse { get; }
Property Value
Type | Description |
---|---|
GeneralTransform | The inverse of this transform, if it exists; otherwise, null. |
Overrides
Methods
| Improve this Doc View SourceTransformBounds(Rect)
Transforms the specified bounding box and returns an axis-aligned bounding box that is exactly large enough to contain it.
Declaration
public override Rect TransformBounds(Rect rect)
Parameters
Type | Name | Description |
---|---|---|
Rect | rect | The bounding box to transform. |
Returns
Type | Description |
---|---|
Rect | The smallest axis-aligned bounding box that can contain the transformed rect. |
Overrides
| Improve this Doc View SourceTryTransform(Point, out Point)
Attempts to transform the specified point and returns a value that indicates whether the transformation was successful.
Declaration
public override bool TryTransform(Point inPoint, out Point outPoint)
Parameters
Type | Name | Description |
---|---|---|
Point | inPoint | The point to transform. |
Point | outPoint | The result of transforming inPoint. |
Returns
Type | Description |
---|---|
System.Boolean | true if inPoint was transformed; otherwise, false. |