skip to main content

Library Routines : W$IMAGESIZE

W$IMAGESIZE
The W$IMAGESIZE library routine allows to retrieve the width and the height in pixels of an image resource.
Syntax:
 CALL "W$IMAGESIZE" USING bitmapHandle
Parameters:
Examples:
Example - Get the dimensions of an image
working-storage section.
copy "isgui.def".  
77  hBmp pic s9(9comp-4.
77  w-width    pic 9(5)v99.
77  w-height   pic 9(5)v99.
77  f-image-name pic x(80).
procedure division.
  move "c:\tmp\img1.jpg" to f-image-name
  call "w$bitmap" using wbitmap-load, f-image-name
       giving hBmp
  call "w$imagesize" using hBmp, w-width, w-height
  display message "File : " f-image-name x"0d0a"
                  "width : " w-width " height : " w-height.

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