Skip to main content

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 %

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.


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.


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?


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


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.