C# Class System.Drawing.GraphicsUtil

Structure with graphics utility methods.
Afficher le fichier Open project: Longkong/Pojjaman

Méthodes publiques

Méthode 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 méthode

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. ///
Résultat void

IncludePointX() public static méthode

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. ///
Résultat void

IncludePointY() public static méthode

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. ///
Résultat void