C# Class System.Drawing.GraphicsUtil

Structure with graphics utility methods.
Datei anzeigen Open project: Longkong/Pojjaman

Public Methods

Method Description
IncludePoint ( RectangleF &rect, PointF pointToInclude ) : void

Checks if point is contained within RectangleF structure and extends rectangle bounds if neccessary to include the point.

IncludePointX ( RectangleF &rect, float xToInclude ) : void

Checks if x-coordinate is contained within the RectangleF structure and extends rectangle bounds if neccessary to include the point.

IncludePointY ( RectangleF &rect, float yToInclude ) : void

Checks if y-coordinate is contained within the RectangleF structure and extends rectangle bounds if neccessary to include the point.

Method Details

IncludePoint() public static method

Checks if point is contained within RectangleF structure and extends rectangle bounds if neccessary to include the point.
public static IncludePoint ( RectangleF &rect, PointF pointToInclude ) : void
rect RectangleF /// Reference to RectangleF to check. ///
pointToInclude PointF /// PontF object to include. ///
return void

IncludePointX() public static method

Checks if x-coordinate is contained within the RectangleF structure and extends rectangle bounds if neccessary to include the point.
public static IncludePointX ( RectangleF &rect, float xToInclude ) : void
rect RectangleF /// RectangleF to check. ///
xToInclude float /// x-coordinate to include. ///
return void

IncludePointY() public static method

Checks if y-coordinate is contained within the RectangleF structure and extends rectangle bounds if neccessary to include the point.
public static IncludePointY ( RectangleF &rect, float yToInclude ) : void
rect RectangleF /// RectangleF to check. ///
yToInclude float /// y-coordinate to include. ///
return void