Class GeneralTransform
Provides generalized transformation support for objects, such as points and rectangles.
Inherited Members
Namespace: System.Windows.Media
Assembly: OpenSilver.dll
Syntax
public abstract class GeneralTransform : DependencyObject
Constructors
| Improve this Doc View SourceGeneralTransform()
Initializes a new instance of the GeneralTransform class.
Declaration
protected GeneralTransform()
Properties
| Improve this Doc View SourceInverse
Gets the inverse transformation of this GeneralTransform, if possible.
Declaration
public abstract GeneralTransform Inverse { get; }
Property Value
Type | Description |
---|---|
GeneralTransform | An inverse of this instance, if possible; otherwise null. |
Methods
| Improve this Doc View SourceTransform(Point)
Transforms the specified point and returns the result.
Declaration
public Point Transform(Point point)
Parameters
Type | Name | Description |
---|---|---|
Point | point | The point to transform. |
Returns
Type | Description |
---|---|
Point | The result of transforming point. |
TransformBounds(Rect)
When overridden in a derived class, transforms the specified bounding box and returns an axis-aligned bounding box that is exactly large enough to contain it.
Declaration
public abstract 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 possible that contains the transformed rect. |
TransformPoint(Point)
Transforms the specified point and returns the result.
Declaration
public Point TransformPoint(Point point)
Parameters
Type | Name | Description |
---|---|---|
Point | point | The point to transform. |
Returns
Type | Description |
---|---|
Point | The result of transforming point. |
TryTransform(Point, out Point)
Attempts to transform the specified point and returns a value that indicates whether the transformation was successful.
Declaration
public abstract 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. |