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
Resize BITMAP
Re: Resize BITMAP
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.
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.
The eXpress train is coming - and it has more cars.
- Eugene Lutsenko
- Posts: 1649
- Joined: Sat Feb 04, 2012 2:23 am
- Location: Russia, Southern federal district, city of Krasnodar
- Contact:
Re: Resize BITMAP
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