Resize BITMAP

This forum is for eXpress++ general support.
Post Reply
Message
Author
ampandya
Posts: 58
Joined: Tue Apr 19, 2016 4:48 am

Resize BITMAP

#1 Post 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

User avatar
rdonnay
Site Admin
Posts: 4775
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Resize BITMAP

#2 Post 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.
The eXpress train is coming - and it has more cars.

User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Re: Resize BITMAP

#3 Post 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

Post Reply