Page 1 of 1

Resize BITMAP

Posted: Sat Sep 14, 2019 4:49 am
by ampandya
Hi
I am using the BITMAP within the DCGETOPTIONS, My form is Maximised.
When the form load, the Image is not resizing. the shows more then one images.

Is there any way i can Resize the image as per the windows screen size.

Thanks

Re: Resize BITMAP

Posted: Sat Sep 14, 2019 8:48 am
by rdonnay
That's not really easy to do.

You would have to do this using some Gra* functions.

Also, resizing bitmaps doesn't look good.
Aspect ratios are not correct and dithering looks bad.

It's a better idea to center the bitmap on the drawing area of the main window.
To do this, you cannot use the BITMAP command of DCGETOPTIONS.
Instead, you need to create a DCSTATIC TYPE XBPSTATIC_TYPE_BITMAP.
When you resize the window, the bitmap will stay centered if you using the proper RESIZE command.

Re: Resize BITMAP

Posted: Sat Sep 14, 2019 11:50 am
by Eugene Lutsenko
I used zoom before displaying the image. But Roger rights, is obtained so itself (not very well). But it's better than nothing. I save a quality image as a file: http://lc.kubagro.ru/__AIDOS-X.txt