fg_rotdcb()Win32 DirectX Fastgraph/Light Prototype void fg_rotdcb (void *source, void *dest, int width, int height, int angle); Sub fg_rotdcb (source() As Any, dest() As Any, ByVal width As Long, ByVal height As Long, ByVal angle As Long) procedure fg_rotdcb (var source, dest; width, height, angle : integer); Description The fg_rotdcb() function rotates a direct color bitmap (around its center) by a specified angle. For high color virtual buffers, each pixel in the bitmaps is a 16-bit (two byte) encoded RGB value. For true color virtual buffers, each pixel is a 24-bit (three byte) RGB value, stored blue byte first, then green byte, then red byte. Parameters source is the name of the array containing the direct color bitmap to be rotated. dest is the name of the array that will receive the resulting rotated direct color bitmap. width is the source bitmap width in pixels. It must be greater than zero. height is the source bitmap height in pixels. It must be greater than zero. angle is the rotation angle, expressed in tenths of degrees and measured counterclockwise from the positive x axis. Return value none Restrictions none See also
|
 
copyright 2001 Ted Gruber Software, Inc.