Question:
You are developing a utility screen for a new client application. The utility screen displays a thermometer that conveys the current status of processes being carried out by the application. You need to draw a rectangle on the screen to serve as the background of the thermometer as shown in the exhibit.
The rectangle must be filled with gradient shading. (Click the Exhibit button.) Which code segment should you choose?
A RectangleF rectangle = new RectangleF(10f, 10f, 450f, 25f); SolidBrush rectangleBrush =
new SolidBrush(Color.AliceBlue);
Pen rectanglePen = new Pen(rectangleBrush);
Graphics g = this.CreateGraphics();B DrawRectangle(rectangleBrush, rectangle);
C Rectangle rectangle = new Rectangle(10, 10, 450, 25); LinearGradientBrush rectangleBrush =
new LinearGradientBrush(rectangle,
Color.AliceBlue, Color.CornflowerBlue,
LinearGradientMode.ForwardDiagonal);
Pen rectanglePen = new Pen(rectangleBrush);
Graphics g = this.CreateGraphics();D DrawRectangle(rectanglePen, rectangle);
E RectangleF rectangle = new RectangleF(10f, 10f, 450f, 25f); Point[] points = new Point[]
{new Point(0, 0),
new Point(110, 145)};
LinearGradientBrush rectangleBrush =
new LinearGradientBrush(rectangle, Color.AliceBlue,
Color.CornflowerBlue,
LinearGradientMode.ForwardDiagonal);
Pen rectanglePen = new Pen(rectangleBrush);
Graphics g = this.CreateGraphics();F DrawPolygon(rectanglePen, points);
G Rectangle rectangle = new Rectangle(10, 10, 450, 25); LinearGradientBrush rectangleBrush =
new LinearGradientBrush(rectangle, Color.AliceBlue, Color.CornflowerBlue,
"A Composite Solution With Just One Click" - Certification Guaranteed 289 Microsoft 70-536 Exam LinearGradientMode.ForwardDiagonal);
Pen rectanglePen = new Pen(rectangleBrush);
Graphics g = this.CreateGraphics();H FillRectangle(rectangleBrush, rectangle);
+ AnswerD
+ Report