MindFusion.Wpf Pack Programmer's Guide
Utilities Methods
 


 Public Methods

  Name Description

AddPoints

Adds two points. In .NET 2.0 Point.Offset() may be used instead.

AddRoundRect

Overloaded.  

ApplyPadding

Subtract padding space from specified rectangle.

ApproxBezier

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.

CalcBezierCoef

Calculates the bezier coefficients in the equation of the specified bezier curve.

Ccw

Determines, given three points, if when travelling from the first to the second to the third, we travel in a counterclockwise direction.

CheckIntersect

Checks if the specified rectangle and circle intersect.

Closer

Overloaded.  

CompareFiles

Compares two files.

CompareStreams

Compares two streams. The streams should the buffered for performance. The streams are not closed.

CreateRotateTransform

Creates a new rotation transformation at the specified angle around the specified point.

Degrees

Converts the specified value from radians to degrees.

Distance

Overloaded.  

DistanceAlongLength

Returns the distance from the specified point to the start of the specified path along the path's length.

DistanceSq

Calculates the square of the distance between the specified points.

DistToBezier

Calculates the shortest distance from the specified point to the specified bezier curve.

DistToLineSegment

Calculates distance from the specified point to the specified line segment

DistToPolyline

Overloaded.  

DistToRect

Calculates distance from the specified point to the specified rectangle.

DistToRectPoint

Returns the nearest to pt point that lies on the outline of rectangle.

DrawImage

Draws the specified image to the specified graphics, using the specified destination rectangle and alignment.

ExpandByPadding

Expands specified rectange by padding space provided in Thickness argument.

Farther

Returns the point from the specified pair, which lies farther from the specified pivot.

FindAncestor

Finds visual tree ancestor of the specified type.

Flatten

Returns a polygon approximating the specified path figure.

FromLTRB

Creates a new System.Windows.Rect out of the specified coordinates.

GetBezierPt

Gets the point from the specified bezier curve, corresponding to the specified parameter t [0, 1].

GetBrushColor

Gets Color value for a Brush.

GetEllipseIntr

Calculate the intersection point between the ellipse with the specified bounds and the line segment defined by the specified points.

GetNearestPt

Calculates the orthogonal projection of the specified point on the line defined be the specified point pair.

GetPathPoints

Gets the end points of segments of a PathGeometry.

GetRectIntr

Calculates the intersection point between the specified rectangle and the line segment defined by the specified points.

GetRoundRect

Creates a graphics path of a rounded rectangle with the specified dimensions and round radius.

HitTest

Hit tests a Visual against a Geometry value.

HitTestResult

Hit tests a Visual against a Geometry value.

ImageRect

Returns the region where an image should be displayed for specified alignment.

Intersect

Determines whether the specified line segments intersect.

LineIntersect

Like LineIntersectNaN, but semantically ambiguous as it returns Real.MinValue instead of NaN. Better use LineIntersectNaN. Left for compatibility.

LineIntersectNaN

Finds the intersection point of the lines defined by the specified point pairs.

LoadImage

Overloaded.  

MatchPointsMinLength

Returns an array of node anchor points which match current node links anchor point

MinDistToRect

Calculates the minimum distance between a given point and a given rectangle.

PointAlongLength

Returns a point lying at the specified distance from the start point along the path specified via the collection of points.

PointInEllipse

Checks whether the specified point is contained in the ellipse defined by the specified rectangle.

PointInPolygon

Determines if the specified point is within the specified polygon.

PointInPolyRect

Determines if the specified point is within the smallest rectangle that encloses the specified polygon.

PointInRect

Checks whether the specified rectangle contains the specified point.

PointInSegment

Checks whether the line segment defined by the specified points contain the specified point.

PolylineIntersectsRect

Detects whether specified polyline intersects specified rectangle.

PolylineRectOverlapLen

Calculates the length of a polyline overlapped by specified rectangle.

Radians

Converts the specified value from degrees to radians.

SaveImage

Overloaded. Saves an image to a file or a stream.

SaveJpeg

Saves an image to the specified jpeg file.

SaveToFile

Overloaded.  

ScaleRect

Scales a rectangle by specified factors.

ScaleRectCentered

Scales a rectangle by specified factors.

ScaleRectSize

Scales a rectangle by specified factors.

SegmentIntersect

Checks whether the segments defined by the specified point pairs intersect and returns the intersection point.

SegmentRectOverlapLen

Calculates the length of a line segment overlapped by specified rectangle.

SetCenter

Centers a rectangle on specified point.

SnapToDevicePixel

Overloaded.  

 See Also

Utilities Class
MindFusion Namespace