IOrientationTransform
Namespace: TagBites.WinSchedulers.Drawing
Assembly: TagBites.WinSchedulers.dll
Provides a mechanism for orientation transform.
public abstract interface IOrientationTransform
Methods
GetBottom(Rect)
Returns the y-axis value of the bottom of the rectangle.
public double GetBottom(Rect rect)
Result Type: double
Parameters
Type | Name | |
---|---|---|
Rect | rect | structure that represents the rectangle to transform. |
GetHeight(Rect)
Returns the height of the rectangle.
public double GetHeight(Rect rect)
Result Type: double
Parameters
Type | Name | |
---|---|---|
Rect | rect | structure that represents the rectangle to transform. |
GetHeight(Size)
Returns the vertical component of System.Windows.Size structure.
public double GetHeight(Size size)
Result Type: double
Parameters
Type | Name | |
---|---|---|
Size | size | structure that represents the size to transform. |
GetLeft(Rect)
Returns the position of the top-left corner of the rectangle.
public double GetLeft(Rect rect)
Result Type: double
Parameters
Type | Name | |
---|---|---|
Rect | rect | structure that represents the rectangle to transform. |
GetRight(Rect)
Returns the x-axis value of the right side of the rectangle.
public double GetRight(Rect rect)
Result Type: double
Parameters
Type | Name | |
---|---|---|
Rect | rect | structure that represents the rectangle to transform. |
GetTop(Rect)
Returns the y-axis position of the top of the rectangle.
public double GetTop(Rect rect)
Result Type: double
Parameters
Type | Name | |
---|---|---|
Rect | rect | structure that represents the rectangle to transform. |
GetWidth(Rect)
Returns the width of the rectangle.
public double GetWidth(Rect rect)
Result Type: double
Parameters
Type | Name | |
---|---|---|
Rect | rect | structure that represents the rectangle to transform. |
GetWidth(Size)
Returns the horizontal component of System.Windows.Size structure.
public double GetWidth(Size size)
Result Type: double
Parameters
Type | Name | |
---|---|---|
Size | size | structure that represents the size to transform. |
GetX(Point)
Returns the x-coordinate of the point.
public double GetX(Point point)
Result Type: double
Parameters
Type | Name | |
---|---|---|
Point | point | structure that represents the point to transform. |
GetX(Rect)
Returns the x-axis value of the left side of the rectangle.
public double GetX(Rect rect)
Result Type: double
Parameters
Type | Name | |
---|---|---|
Rect | rect | structure that represents the rectangle to transform. |
GetY(Point)
Returns the y-coordinate of the point.
public double GetY(Point point)
Result Type: double
Parameters
Type | Name | |
---|---|---|
Point | point | structure that represents the point to transform. |
GetY(Rect)
Returns the y-axis value of the top side of the rectangle.
public double GetY(Rect rect)
Result Type: double
Parameters
Type | Name | |
---|---|---|
Rect | rect | structure that represents the rectangle to transform. |
ToPoint(double, double)
Converts the specified coordinates to a System.Windows.Point structure.
public Point ToPoint(double x, double y)
Result Type: Point
Parameters
Type | Name | |
---|---|---|
double | x | The horizontal position of the point. |
double | y | The vertical position of the point. |
ToRect(double, double, double, double)
Converts the specified coordinates to a System.Windows.Rect structure.
public Rect ToRect(double x, double y, double width, double height)
Result Type: Rect
Parameters
Type | Name | |
---|---|---|
double | x | The x-coordinate of the top-left corner of the rectangle. |
double | y | The y-coordinate of the top-left corner of the rectangle. |
double | width | The width of the rectangle. |
double | height | The height of the rectangle. |
Transform(Point)
Returns a transformed point.
public Point Transform(Point point)
Result Type: Point
Parameters
Type | Name | |
---|---|---|
Point | point | structure that represents the point to transform. |
Transform(Rect)
Returns a transformed rectangle.
public Rect Transform(Rect rect)
Result Type: Rect
Parameters
Type | Name | |
---|---|---|
Rect | rect | structure that represents the rectangle to transform. |