Expand/Shrink

rotateDib

Definition: a32Dib0 newdib = rotateDib(a32Dib dib, integer angle, integer kill_old)
Description: Rotates the bitmap and returns the new bitmap.
Comments: Returns 0 if the bitmap could not be rotated.
angle will be rounded to the closest straight angle, so only 0, 90, 180, 270, -90, -180 or -270 degrees will be used.
negative angle rotates to the left, positive angles to the right.
If kill_old!=0 then the previous bitmap will be killed.