Skip to main content

Bitmap Width & Height using W$BITMAP

  • January 27, 2022
  • 5 replies
  • 0 views

Larry Carlsen

I wish to display a bitmap or jpg file using W$BITMAP.  I want to know the width & height so I can show it in a floating window that is the correct size.  Can anyone offer a suggestion ?  Also it would be nice if there was an option with the WBITMAP-DISPLAY op to resize or scale the graphic smaller by a %

5 replies

Claudio Contardi
Forum|alt.badge.img+2

I wish to display a bitmap or jpg file using W$BITMAP.  I want to know the width & height so I can show it in a floating window that is the correct size.  Can anyone offer a suggestion ?  Also it would be nice if there was an option with the WBITMAP-DISPLAY op to resize or scale the graphic smaller by a %

Good morning, LarryC

Please, have a look at the BITMAP-SCALE property for the Bitmap graphical control: https://bit.ly/3nZ1In6

Actual size of the image cannot be detected, but you can set your own and use this property to resize the image correctly, keeping its ratio.


Larry Carlsen
  • Author
  • Participating Frequently
  • January 28, 2022

Good morning, LarryC

Please, have a look at the BITMAP-SCALE property for the Bitmap graphical control: https://bit.ly/3nZ1In6

Actual size of the image cannot be detected, but you can set your own and use this property to resize the image correctly, keeping its ratio.

Unfortunately I am still on Rev 10.3.01 so the Height, Width and Scale properties won't work.

However, thanks for pointing these new features out.


Claudio Contardi
Forum|alt.badge.img+2

Unfortunately I am still on Rev 10.3.01 so the Height, Width and Scale properties won't work.

However, thanks for pointing these new features out.

LarryC, why do you say that?

BITMAP-SCALE property was present in ACUCOBOL-GT 10.3.1.

Are you having a specific issue or error?

Anything the Support team can help you with, by opening a Case on the portal for this?


Larry Carlsen
  • Author
  • Participating Frequently
  • January 29, 2022

LarryC, why do you say that?

BITMAP-SCALE property was present in ACUCOBOL-GT 10.3.1.

Are you having a specific issue or error?

Anything the Support team can help you with, by opening a Case on the portal for this?

Reading the documentation it appears as if it is only applicable using WIN$PRINTER to print a bitmap.

Does it also work for WBITMAP-DISPLAY ?

Thanks


Claudio Contardi
Forum|alt.badge.img+2

Reading the documentation it appears as if it is only applicable using WIN$PRINTER to print a bitmap.

Does it also work for WBITMAP-DISPLAY ?

Thanks

I am not sure what Documentation you are referring to, but if you open the main page:

https://www.microfocus.com/documentation/extend-acucobol/1031/extend-Interoperability-Suite/index.html

And search for BITMAP-SCALE, you will see that this property applies to bitmaps on Check Boxes, Push Buttons, List Boxes, etc.