Results 1 to 2 of 2

Thread: Rectangle co-ordinates on resize

  1. #1
    Newbie
    Joined
    May 2018
    From
    India
    Posts
    1

    Rectangle co-ordinates on resize

    Hi,

    Rectangle co-ordinates on resize-untitled.png
    I have 2 rectangles as in the attached image.
    Blue Rect(Lets say, w by h -> 300 x 80)
    There's a Red Rect inside Blue rect(Lets say, co-ordinates -> Top Left point(75,15)
    (w by h -> 48 x 23).

    Now if the blue rect is resized to (w by h = 128 x 32), what would be the co-ordinates and width x height of the red rect inside the blue rect of (128 x 32).

    Regards,
    Sayan
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Joined
    Nov 2010
    Posts
    3,455
    Thanks
    1368

    Re: Rectangle co-ordinates on resize

    Are you asking for the proportions to stretch or contract linearly?

    Red rectangle: $\dfrac{128}{300}48\times \dfrac{32}{80}32$

    Do something similar to find the coordinates for the top left corner.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: Jul 24th 2013, 02:28 AM
  2. Array resize problem
    Posted in the Algebra Forum
    Replies: 0
    Last Post: Mar 12th 2013, 10:48 AM
  3. Replies: 6
    Last Post: Jun 2nd 2011, 04:56 PM
  4. [SOLVED] Finding Co-Ordinates of a Rectangle
    Posted in the Geometry Forum
    Replies: 10
    Last Post: May 10th 2010, 07:58 AM
  5. resize x maintain y aspect ratio
    Posted in the Algebra Forum
    Replies: 1
    Last Post: May 13th 2008, 10:05 AM

Search Tags


/mathhelpforum @mathhelpforum