PixelFarm.Drawing.RectangleF.Inflate C# (CSharp) Method

Inflate() public static method

Inflate Shared Method
Produces a new RectangleF by inflating an existing RectangleF by the specified coordinate values.
public static Inflate ( RectangleF rect, float x, float y ) : RectangleF
rect RectangleF
x float
y float
return RectangleF
        public static RectangleF Inflate(RectangleF rect,
                          float x, float y)
        {
            RectangleF ir = new RectangleF(rect.X, rect.Y, rect.Width, rect.Height);
            ir.Inflate(x, y);
            return ir;
        }

Same methods

RectangleF::Inflate ( SizeF size ) : void
RectangleF::Inflate ( float x, float y ) : void

Usage Example

Exemplo n.º 1
0
        /// <summary>
        ///	Inflate Shared Method
        /// </summary>
        ///
        /// <remarks>
        ///	Produces a new RectangleF by inflating an existing 
        ///	RectangleF by the specified coordinate values.
        /// </remarks>

        public static RectangleF Inflate(RectangleF rect,
                          float x, float y)
        {
            RectangleF ir = new RectangleF(rect.X, rect.Y, rect.Width, rect.Height);
            ir.Inflate(x, y);
            return ir;
        }