Contains common helper methods.
The following tables list the members exposed by the Utilities type.
Name | Description | |
---|---|---|
![]() ![]() |
Adds two points. In .NET 2.0 Point.Offset() may be used instead. |
|
![]() ![]() |
Overloaded. |
|
![]() ![]() |
Subtract padding space from specified rectangle. |
|
![]() ![]() |
Approximates the specified bezier curve with a polyline. The specified quality parameter varies in the interval [1, ...) and is proportional to the number of points in the resulting polyline. |
|
![]() ![]() |
Calculates the bezier coefficients in the equation of the specified bezier curve. |
|
![]() ![]() |
Determines, given three points, if when travelling from the first to the second to the third, we travel in a counterclockwise direction. |
|
![]() ![]() |
Checks if the specified rectangle and circle intersect. |
|
![]() ![]() |
Overloaded. |
|
![]() ![]() |
Compares two files. |
|
![]() ![]() |
Compares two streams. The streams should the buffered for performance. The streams are not closed. |
|
![]() ![]() |
Creates a new rotation transformation at the specified angle around the specified point. |
|
![]() ![]() |
Converts the specified value from radians to degrees. |
|
![]() ![]() |
Overloaded. |
|
![]() ![]() |
Returns the distance from the specified point to the start of the specified path along the path's length. |
|
![]() ![]() |
Calculates the square of the distance between the specified points. |
|
![]() ![]() |
Calculates the shortest distance from the specified point to the specified bezier curve. |
|
![]() ![]() |
Calculates distance from the specified point to the specified line segment |
|
![]() ![]() |
Overloaded. |
|
![]() ![]() |
Calculates distance from the specified point to the specified rectangle. |
|
![]() ![]() |
Returns the nearest to pt point that lies on the outline of rectangle. |
|
![]() ![]() |
Draws the specified image to the specified graphics, using the specified destination rectangle and alignment. |
|
![]() ![]() |
Expands specified rectange by padding space provided in Thickness argument. |
|
![]() ![]() |
Returns the point from the specified pair, which lies farther from the specified pivot. |
|
![]() ![]() |
Finds visual tree ancestor of the specified type. |
|
![]() ![]() |
Returns a polygon approximating the specified path figure. |
|
![]() ![]() |
Creates a new System.Windows.Rect out of the specified coordinates. |
|
![]() ![]() |
Gets the point from the specified bezier curve, corresponding to the specified parameter t [0, 1]. |
|
![]() ![]() |
Gets Color value for a Brush. |
|
![]() ![]() |
Calculate the intersection point between the ellipse with the specified bounds and the line segment defined by the specified points. |
|
![]() ![]() |
Calculates the orthogonal projection of the specified point on the line defined be the specified point pair. |
|
![]() ![]() |
Gets the end points of segments of a PathGeometry. |
|
![]() ![]() |
Calculates the intersection point between the specified rectangle and the line segment defined by the specified points. |
|
![]() ![]() |
Creates a graphics path of a rounded rectangle with the specified dimensions and round radius. |
|
![]() ![]() |
Hit tests a Visual against a Geometry value. |
|
![]() ![]() |
Hit tests a Visual against a Geometry value. |
|
![]() ![]() |
Returns the region where an image should be displayed for specified alignment. |
|
![]() ![]() |
Determines whether the specified line segments intersect. |
|
![]() ![]() |
Like LineIntersectNaN, but semantically ambiguous as it returns Real.MinValue instead of NaN. Better use LineIntersectNaN. Left for compatibility. |
|
![]() ![]() |
Finds the intersection point of the lines defined by the specified point pairs. |
|
![]() ![]() |
Overloaded. |
|
![]() ![]() |
Returns an array of node anchor points which match current node links anchor point |
|
![]() ![]() |
Calculates the minimum distance between a given point and a given rectangle. |
|
![]() ![]() |
Returns a point lying at the specified distance from the start point along the path specified via the collection of points. |
|
![]() ![]() |
Checks whether the specified point is contained in the ellipse defined by the specified rectangle. |
|
![]() ![]() |
Determines if the specified point is within the specified polygon. |
|
![]() ![]() |
Determines if the specified point is within the smallest rectangle that encloses the specified polygon. |
|
![]() ![]() |
Checks whether the specified rectangle contains the specified point. |
|
![]() ![]() |
Checks whether the line segment defined by the specified points contain the specified point. |
|
![]() ![]() |
Detects whether specified polyline intersects specified rectangle. |
|
![]() ![]() |
Calculates the length of a polyline overlapped by specified rectangle. |
|
![]() ![]() |
Converts the specified value from degrees to radians. |
|
![]() ![]() |
Overloaded. Saves an image to a file or a stream. |
|
![]() ![]() |
Saves an image to the specified jpeg file. |
|
![]() ![]() |
Overloaded. |
|
![]() ![]() |
Scales a rectangle by specified factors. |
|
![]() ![]() |
Scales a rectangle by specified factors. |
|
![]() ![]() |
Scales a rectangle by specified factors. |
|
![]() ![]() |
Checks whether the segments defined by the specified point pairs intersect and returns the intersection point. |
|
![]() ![]() |
Calculates the length of a line segment overlapped by specified rectangle. |
|
![]() ![]() |
Centers a rectangle on specified point. |
|
![]() ![]() |
Overloaded. |