Skip to content
Auto
Products

IOrientationTransform

Namespace: TagBites.WinSchedulers.Drawing
Assembly: TagBites.WinSchedulers.dll
Product: TagBites.WinSchedulers v. 1.3.8

Provides a mechanism for orientation transform.

public interface IOrientationTransform

Returns the y-axis value of the bottom of the rectangle.

public virtual double GetBottom(Rect rect)
  • rect Rect
    Rect structure that represents the rectangle to transform.

double

The y-axis value of the bottom of the rectangle. If the rectangle is empty, the value is Double.NegativeInfinity.

Returns the height of the rectangle.

public virtual double GetHeight(Rect rect)
  • rect Rect
    Rect structure that represents the rectangle to transform.

double

A positive number that represents the height of the rectangle. The default is 0.

Returns the vertical component of Size structure.

public virtual double GetHeight(Size size)
  • size Size
    Size structure that represents the size to transform.

double

The vertical component of Size structure, typically measured in pixels..

Returns the position of the top-left corner of the rectangle.

public virtual double GetLeft(Rect rect)
  • rect Rect
    Rect structure that represents the rectangle to transform.

double

The position of the top-left corner of the rectangle.

Returns the x-axis value of the right side of the rectangle.

public virtual double GetRight(Rect rect)
  • rect Rect
    Rect structure that represents the rectangle to transform.

double

The x-axis value of the right side of the rectangle.

Returns the y-axis position of the top of the rectangle.

public virtual double GetTop(Rect rect)
  • rect Rect
    Rect structure that represents the rectangle to transform.

double

The y-axis position of the top of the rectangle

Returns the width of the rectangle.

public virtual double GetWidth(Rect rect)
  • rect Rect
    Rect structure that represents the rectangle to transform.

double

A positive number that represents the width of the rectangle. The default is 0.

Returns the horizontal component of Size structure.

public virtual double GetWidth(Size size)
  • size Size
    Size structure that represents the size to transform.

double

The horizontal component of Size structure, typically measured in pixels.

Returns the x-coordinate of the point.

public virtual double GetX(Point point)
  • point Point
    Point structure that represents the point to transform.

double

The x-coordinate of the point

Returns the x-axis value of the left side of the rectangle.

public virtual double GetX(Rect rect)
  • rect Rect
    Rect structure that represents the rectangle to transform.

double

The x-coordinate of the rectangle

Returns the y-coordinate of the point.

public virtual double GetY(Point point)
  • point Point
    Point structure that represents the point to transform.

double

The y-coordinate of the point

Returns the y-axis value of the top side of the rectangle.

public virtual double GetY(Rect rect)
  • rect Rect
    Rect structure that represents the rectangle to transform.

double

The y-coordinate of the rectangle

Converts the specified coordinates to a Point structure.

public virtual Point ToPoint(double x, double y)
  • x double
    The horizontal position of the point.
  • y double
    The vertical position of the point.

Point

The Point that results from the conversion.

Converts the specified coordinates to a Rect structure.

public virtual Rect ToRect(double x, double y, double width, double height)
  • x double
    The x-coordinate of the top-left corner of the rectangle.
  • y double
    The y-coordinate of the top-left corner of the rectangle.
  • width double
    The width of the rectangle.
  • height double
    The height of the rectangle.

Rect

The Rect that results from the conversion.

Returns a transformed point.

public virtual Point Transform(Point point)
  • point Point
    Point structure that represents the point to transform.

Point

Point object representation of transformed point.

Returns a transformed rectangle.

public virtual Rect Transform(Rect rect)
  • rect Rect
    Rect structure that represents the rectangle to transform.

Rect

Rect object representation of rectangle.