How can the line be drawn by drawline method

Assignment Help Computer Graphics
Reference no: EM13950871

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: EM13950871

Questions Cloud

What is probability that the passenger is using airport a : Suppose that, in a particular city, airport A handles 50% of all airline traffic, and airports B and C handle 30% and 20%, respectively. The detection rates for weapons at the three airports are .9, .5, and .4, respectively. If a passenger at one ..
Employment contract with computers : In March 2011 Chu, at age 50, decides to retire. As part of his employment contract with Computers Pty Ltd, Chu had agreed that he will not compete against the company in New South Wales for two years.
What is the amount of the cash flow to creditors : At the beginning of the year, the long-term debt of a firm was 300 and total debt was 350. At the end of the year, long-term debt was 250 and total debt was 360. The interest paid was 32. What is the amount of the cash flow to creditors?
Yield to maturity reflects the current market rate : If coupon rate is lower than its yield to maturity, then the bond would sell at a discount. Stock valuation models depend on all past and future dividend payments.? Yield to maturity reflects the current market rate and it is the appropriate discount..
How can the line be drawn by drawline method : How does a programmer typically get access to a Graphics object when coding an applet?
Planning a weekend camping trip : You are the father or mother of a family of four (kids ages 13 and 15) planning a weekend camping trip. Develop a responsibility matrix for the work that needs to be done prior to starting your trip.
Discuss in detail what wdg consulting likely means : Discuss in detail what WDG Consulting likely means by each of those steps - prepare a decision support paper for senior management on the topic of site location and consultant hiring. Responses should assume a "what if" approach.
Prepare journal entries to record the above transactions : Prepare journal entries to record the above transactions and events of Kash Company. (Do not round intermediate calculations and round your final answers to the nearest dollar amount. Omit the $ sign in your response.)
Demographic and an economic trend : Discuss a demographic and an economic trend related to China's power and its impact on marketers in your country. Support your discussion of these trends with statistics.

Reviews

Write a Review

Computer Graphics Questions & Answers

  Create a simple warm-up program using your g3d

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

  Shadow effect while rolling a sphere

Shadow effect while rolling a sphere as well as the options of shading and lighting.

  Relative positioning and interactive positioning

Relative Positioning and Interactive Positioning by Dragging and Clicking and some Simple Animation

  Draw a teapot at the global origin

Draw a teapot at the global origin

  Concepts of computer graphics

Concepts of Computer Graphics and develop a program using OpenGL

  The security policy document outline

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

  Develop the image manipulations

Develop the image manipulations

  What does resolution mean

What does resolution mean How is resolution connected to ppi and dpi units

  Differentiate between a bitmap image and a vector image

Differentiate between a bitmap image and a vector image Explain the following terms

  Essential elements of a design pattern

configuration of an Iterator pattern, patterns could be used in a Library System, Singleton, Template, Decorator, Façade,What does Alexander means by the following declaration "But it is impossible to form anything which has the temperament of natu..

  Framework of user interface design

design of user interfaces, natural mapping, GUI applications, web page design different to designing for printed media, risks exposed in this "phone as individual proxy" approach, interaction designers of ubicomp applications, Storyboards are usual..

  What are the factors affecting picture composition

Define picture composition What are the factors affecting picture composition. Elaborate on each factor Describe the basic lines present in a composition

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