70-559 Free Dumps Study Materials
Question 9: You have just graduated from college, now you are serving the internship as the software
developer in an international company. You're developing a new client application. An utility screen
of the application displays a thermometer. The thermometer conveys the current status of processes
being carried out by the application.
Look at the following exhibit, you have to draw a rectangle on the screen to serve as the background
of the thermometer. The rectangle must be full of gradient shading.
In the options below, which code segment should you use?
A. Dim objRect As New Rectangle(10, 10, 450, 25)Dim objBrush As New LinearGradientBrush( _
objRect, Color.AliceBlue, Color.CornflowerBlue, _ LinearGradientMode.ForwardDiagonal)Dim objPen
As New Pen(objBrush)Dim g As Graphics = myForm.CreateGraphicsg.FillRectangle(objBrush, objRect)
B. Dim objRect As New Rectangle(10, 10, 450, 25)Dim objBrush As New LinearGradientBrush( _
objRect, Color.AliceBlue, Color.CornflowerBlue, _ LinearGradientMode.ForwardDiagonal)Dim objPen
As New Pen(objBrush)Dim g As Graphics = myForm.CreateGraphicsg.DrawRectangle(objPen, objRect)
C. Dim objRect As New RectangleF(10.0F, 10.0F, 450.0F, 25.0F)Dim points() As System.Drawing.Point
= _ {New Point(0, 0), New Point(110, 145)}Dim objBrush As New LinearGradientBrush( _ objRect,
Color.AliceBlue, Color.CornflowerBlue, _ LinearGradientMode.ForwardDiagonal)Dim objPen As New
Pen(objBrush)Dim g As Graphics = myForm.CreateGraphicsg.DrawPolygon(objPen, points)
D. Dim objRect As New Rectangle(10, 10, 450, 25)Dim objBrush As New
SolidBrush(Color.AliceBlue)Dim objPen As New Pen(objBrush)Dim g As Graphics =
myForm.CreateGraphicsg.DrawRectangle(objPen, objRect)
Correct Answer: A