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?
new SolidBrush(Color.AliceBlue);
Pen rectanglePen = new Pen(rectangleBrush);
Graphics g = this.CreateGraphics();
B
C
new LinearGradientBrush(rectangle,
Color.AliceBlue, Color.CornflowerBlue,
LinearGradientMode.ForwardDiagonal);
Pen rectanglePen = new Pen(rectangleBrush);
Graphics g = this.CreateGraphics();
D
E
{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
G
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