# 2D Graphics – Graphics functions

This suite contains a number of tests that exercise the standard Windows graphics functions and the video card.

Line Drawing

Lines are drawn into window. The color is changed every 500 lines to enable the lines to been seen in the test window.

Painting Bitmaps

A bitmap is painted into a window as quickly as possible.

Outline shapes

Two different shapes are drawn into a window

-An ellipse

-A square with rounded corners

The color is changed every 64 shapes to enable the shapes to be seen in the test window.

For each graphical operation the Windows return code is checked to verify that the operation was successful. The numbers displayed at the top of the window for this test represent how many millions of graphical operations have been performed. Each different math’s test is run for half a second. After all 3 tests have been run the cycle count is incremented. The duty cycle, the CPU speed and the video card speed, determine how many operations can be processed during the half second period.

The codes used at the top of the windows are,

LI = Millions of lines drawn

SH = Millions of shapes drawn

RE = Millions of rectangles (Bitmaps) drawn

The total of these three values is displayed in the main window.