skip to main content

Library Routines : W$SCALE

W$SCALE
The W$SCALE library routine resizes 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$SCALE" USING bitmapHandle 
               GIVING scaledBitmapHandle
Parameters:
Return code:
scaledBitmapHandle can be any data item declared PIC S9(9) and receives the handle to the newly created image, the result of the scaling.
Examples:
Example - Scale an image to width=22 and height=10
display independent graphical window
                   title  "W$SCALE Routine"
call "w$scale" using h-bitmap 22 10 hWin 
     giving h-bitmap-resize.

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