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

  Use kruskal algorithm to construct a minimal spanning tree

1. use Dijkstra's Single Source Shortest Path Algorithm to construct the shortest path from a given vertex S to all other vertices.2. use Kruskal's algorithm to construct a minimal spanning tree for the graph.

  Bullhow might the application of risks management to

bullhow might the application of risks management to possible options be applied to establishing objectives and

  Implement an android application

When the application starts, it presents the user with a calendar displaying the dates of the current month and year and 6 buttons labelled Create Appointment, View/Edit Ap-pointments, Delete Appointment, Move Appointment, Search and Translate App..

  Dissertation proposal video presentation

This is your last research course for the DHA program. You have been working with the organization in which you will collaborate in completing your Action Research project.

  Choose two 2 public corporations in an industry with which

choose two 2 public corporations in an industry with which you are familiar - one 1 that has acquired another company

  Write a gui program with check buttons

Write a GUI program with check buttons that allow the user to select any or all of these services. When the user clicks a button the total charge should be displayed.

  The facts presented in the infographic

To get a different perspective on customer centric business models that often have some sort of "value added" think about what you, as a customer, have experienced. Do you have loyalty to any ape of product or company.

  Discuss history of portfolio design in graphics design

Discuss the history of portfolio design in the graphics design industry, and the role of a graphic designer. Discuss current trends in portfolio design, and the possible future technologies for the industry.

  Gui-based program checking for a palindrome

For this Programming Activity, you will write a GUI-based program checking for a Palindrome.

  Create a simple warm-up program using your g3d

Create a simple warm-up program using your G3D programming and graphics environment.

  Describe the tiff and jpeg bitmap graphic formats

Describe the TIFF and JPEG bitmap graphic formats

  Address the topics below in order to participate in a

address the topics below. in order to participate in a dialogue designed to explore the issues be sure you respond to

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