Packages

 

com.aspose.imaging.extensions

Class RectangleExtensions



  • public final class RectangleExtensions
    extends Object

    Contains extension methods for Rectangle.

    • Method Detail

      • toGdiRectangle

        public static Rectangle toGdiRectangle(Rectangle rectangle)

        Converts the Rectangle to the System.Drawing.Rectangle.

        Parameters:
        rectangle - The rectangle to convert.
        Returns:
        The converted System.Drawing.Rectangle.
      • toGdiRectangle

        public static Rectangle2D.Float toGdiRectangle(RectangleF rectangle)

        Converts the RectangleF to the System.Drawing.Rectangle.

        Parameters:
        rectangle - The rectangle to convert.
        Returns:
        The converted System.Drawing.RectangleF.
      • unionWith

        public static RectangleF unionWith(RectangleF rectangle,
                                           RectangleF otherRectangle)

        Unions two rectangle.

        Parameters:
        rectangle - The first rectangle.
        otherRectangle - The second rectangle.
        Returns:
        New rectangle as union operation result