Example: Bitmap Rotation

The ROTATE example program rotates the 256-color bird bitmap. It first displays the original bitmap, then displays versions rotated at 30, 60, 90, 120, 150, and 180 degrees. The resulting bitmaps look like this:

For simplicity, we chose the size of the rotated bitmap array so that it is big enough to hold the largest rotated bitmap. It would be better to use fg_rotsize() to determine the largest bitmap size and then allocate that much memory dynamically.

C/C++ version

C++Builder version

Delphi version

Visual Basic version

<< Prev

Next >>

Fastgraph Home Page


copyright 2001 Ted Gruber Software, Inc.