What can be stated about line drawn by the following code

Assignment Help Computer Graphics
Reference no: EM13891680

1. How does a programmer typically get access to a Graphics object when coding an applet?

One must be created with the Graphics constructor.
It is an instance variable of the class JApplet.
It is a parameter of the paint method.

2. What can be stated about the line drawn by the following code? g.drawLine( 100, 200, 300, 200 )

the line is vertical.
The line is horizontal.
The line is a diagonal.
None the above.

3. What do the arguments 100, 200 represent in the following statement? g.drawRect( 10, 20, 100, 200)

The (x,y) coordinate of the upper-left corner of the rectangle we are drawing
The width and height of the rectangle we are drawing.
The height and width of the rectangle we are drawing.
The (x,y) coordinate of the lower-right corner of the rectangle we are drawing.

4. What is the (x,y) coordinate of the upper-right corner of the rectangle being drawn? g.fillRect( 10, 20, 250, 350 );

5. This code draws a filled rectangle with a width of 100 pixels and a height of 300 pixels, starting at the coordinate (50,30).

//assume you have a Graphics object called g
//your code goes here

6. This code draws a circle of radius 100 with its center located at (200,200).

//assume you have a Graphics object called g
//your code goes here

Reference no: EM13891680

Questions Cloud

To study the average amount of debts in canada : To study the average amount of debts in Canada, 100 Canadianswere surveyed. The amount of debt of each one wasrecorded. The sample gave an average of 28110 CAD withstandard deviation of 3500 CAD. It is believed that the actualmean value of the debt i..
What can be stated about line drawn by the following code : What can be stated about the line drawn by the following code? g.drawLine( 100, 200, 300, 200 ).
What is meant by autocorrelation : What is meant by autocorrelation and draw a figure showing positive and negative first- order autocorrelation.
A small company that makes fiberglass surfboards : A small company that makes fiberglass surfboards. The molding process is very tricky, and results in defects exactly 25% of the time, and this probability is independent of how many other defects there have been that week. You attempt to mold exactly..
A study was done on students homework environments : A study was done on students homework environments in 3 different environments: listening to music, watching television, or at the library. What are the independent and dependent variables? What would the study hypothesis be? The students were random..

Reviews

Write a Review

Computer Graphics Questions & Answers

  Way in which cli excels compared to gui

In your role as a user advocate, identify and describe one (1) way in which CLI excels compared to GUI, and explain whether or not those features are available in a GUI

  The security policy document outline

Using the GDI Case Study below, complete the Security Policy Document Outline

  Write a program to draw hermite bezier curve

Write a program to draw Hermite/Bezier curve with n control points.

  Develop a checklist for preparing the procedures manual

Research the library and the Internet for information on suggested steps or checklists for planning preparation of a procedures manual. Develop a checklist for preparing the procedures manual

  Ethernet equipment to modernize the network

An older network using ten baseT technology needs an upgrade. The network haves a total of 220 workstations and ten servers and has a network diameter of three-hundred meters.

  What role does corporate-level strategy play in relation to

what role does corporate-level strategy play in relation to business-level strategy?what roles do a firms core

  Components that can be included in graphical user interface

Radio buttons and check boxes are two of many different kinds of components that can be included in a graphical user interface. How are they similar and how are they different

  What is the difference between the images of the ball

Explain what is the difference between the images of the ball - Display the object while texturing the image using the new skybox

  Calculate and plot projection of rectangle on image plane

There is a rectangle with vertices at (-6,-3,6)T, (3,-3,6)T, (3,3,9)T, and (-6,3,9)T. What is the 3x4 perspective camera matrix? Calculate and plot the projection of the rectangle on the image plane.

  Question 1a 1 what does resolution mean2 how is resolution

question 1a 1. what does resolution mean?2. how is resolution connected to ppi and dpi units?b what is the purpose of

  Program that bounces a blue ball inside jpanel

Create a program that bounces a blue ball inside a JPanel. The ball should start moving with a mousePressed event. When the ball hits the edge of the JPanel, it should bounce off the edge and continue in the reverse direction.

  How many pages is one toner cartridge good for

The rest is blank (i.e., no toner) The toner layer is 25 microns thick. The printer's toner cartridge measures 25 * 8 * 2 cm. How many pages is one toner cartridge good for?

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd