Write code so that you make another image below the image currently in the code so that they are next to each other but not touching each other. And Translate - A function that moves the graphic according to the given input . Grow - a function that increases the size of the graphic according to the given input public class BasicGraphicViewer {

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter7: Input/output Technology
Section: Chapter Questions
Problem 26VE
icon
Related questions
Question

Write code so that you make another image below the image currently in the code so that they are next to each other but not touching each other. And Translate - A function that moves the graphic according to the given input . Grow - a function that increases the size of the graphic according to the given input

public class BasicGraphicViewer
{
        public static void main (String[] args)
        {

                Rectangle r1 = new Rectangle(100,10,20,30);
                r1.draw();

                Picture p1 = new Picture();
                p1.load(“someimageurl”); // you can put any image link here.
                p1.draw();

}

}

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Processes of 3D Graphics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning