Esempio n. 1
0
        //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"'
        public virtual void getBounds(System.Drawing.Drawing2D.Matrix transform, ref System.Drawing.Rectangle r, ref System.Drawing.PointF position)
        {
            //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"'
            Util.addPointToBounds(transform, ref r, x, y);

            position.X = (float)x;
            position.Y = (float)y;
        }
Esempio n. 2
0
        /// <summary> Gets the bounds of this subpath using the given transform.
        ///
        /// </summary>
        /// <param name="transform">the transform
        /// </param>
        /// <param name="r">the bounds.
        /// </param>
        //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"'
        public virtual void getBounds(System.Drawing.Drawing2D.Matrix transform, ref System.Drawing.Rectangle r)
        {
            System.Drawing.PointF position = new System.Drawing.PointF((float)startX, (float)startY);

            //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"'
            Util.addPointToBounds(transform, ref r, startX, startY);
            for (int i = 0; i < segments.Length; i++)
            {
                //UPGRADE_NOTE: ref keyword was added to struct-type parameters. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1303_3"'
                segments[i].getBounds(transform, ref r, ref position);
            }
        }