Search
InternalUtils Methods
 


 Public Methods

  Name Description

AddToRect

Inflate/deflate the specified rectangle with the specified values.

ApproxBezier

Approximates the specified Bézier 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.

ApproxEllipse

Approximates the ellipse contained in the specified rectangle with a polyline. The specified quality parameter varies in the interval [1, ...) and is proportional to the number of points in the resulting polyline.

Blend

Creates a normalized [0..1] color blend out of the specified colors and positions.

CheckIntersect

Checks if the specified rectangle and circle intersect.

ConvertUnits

Converts a value between different measure units.

CreateEllipticRgn

Creates an elliptic region.

CreatePolygonRgn

Creates a polygonal region.

CreateRoundRectRgn

Creates a round rectangle region.

Distance

Calculates the distance between the specified points.

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.

DistToPolyline

Overloaded.  

DistToRectPoint

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

DrawExpandButton

Renders an expand/collapse button on the specified IGraphics canvas.

DrawRect

Draws the specified rectangle using the specified pen for stroking and the specified brush for filling.

DrawSelHandles

Draws adjustment handles.

GetCenter

Returns the center point of the specified rectangle.

GetEllipseIntr

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

GetLoadedAssembly

Gets the specified assembly.

GetLoadedType

Overloaded.  

GetRoundRect

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

ImageRect

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

LinearGradient

Overloaded. Creates a linear gradient brush with the specified settings.

MatchPointsMinLength

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

MidPoint

Overloaded.  

MinDistToRect

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

NormalizeRect

Overloaded. Normalizes the specified rectangle.

OffsetPath

Moves a path by the specified offset.

PointAlongLength

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

PointInRect

Overloaded. Checks whether the specified rectangle contains the specified point.

PointsInRect

Checks whether the specified rectangle contains the specified points.

RectangleToPoints

Returns the points of the specified rectangle as an array.

ScaleRect

Scales a rectangle by specified factors.

ScaleRectCentered

Scales a rectangle by specified factors.

SetBrushAlpha

Sets the alpha channel value for all color properties of the specified brush.

SetCenter

Centers a rectangle on specified point.

UnionNonEmptyRects

Returns the smallest possible rectangle containing both of the specified rectangles, but only if the rectangles are non-empty.

UnionRects

Returns the smallest possible rectangle containing both of the specified rectangles.

 See Also