skip to main content

Library Routines : W$ROTATE

W$ROTATE
The W$ROTATE library routine rotates an image.
The routine creates a new image resource and returns its handle. The newly created resource is not released automatically. It must be destroyed by the programmer with the WBITMAP-DESTROY function when it is no longer needed.
Syntax:
 CALL "W$ROTATE" USING bitmapHandle 
                GIVING rotatedBitmapHandle
Parameters:
Return code:
rotatedBitmapHandle can be any data item declared PIC S9(9) and receives the handle to the newly created image, the result of the rotation.
Examples:
Example - Rotate an image 45 degrees
call "w$bitmap" using wbitmap-load, "c:\tmp\images\img1.png"
     giving h-bitmap
compute angle = 45 * 0.01745
call "w$rotate" using h-bitmap angle
     giving h-bitmap-rotate

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left