Image scaling

This forum is for eXpress++ general support.
Post Reply
Message
Author
User avatar
Eugene Lutsenko
Posts: 1649
Joined: Sat Feb 04, 2012 2:23 am
Location: Russia, Southern federal district, city of Krasnodar
Contact:

Image scaling

#1 Post by Eugene Lutsenko »

I have this problem. In my system a lot of graphics. I have a good computer with high resolution monitor (1920 x 1080). When I developed the graphic forms I used all the capabilities of the graphics card. As a result, these graphic forms are displayed correctly only on the same computers. But users often monitor resolution below what is needed. In this case, these graphic forms are not displayed correctly or trying to display them leads to an error of execution.

I have a question. Is it possible before the formation of the graphic form of the ask command to it was formed in memory but not displayed.

And then, when it is completely formed in memory, immediately:
1) render it ready;
2) immediately record it in a file without displaying;
3) to scale in memory and then display?

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

Re: Image scaling

#2 Post by rdonnay »

If the images are loaded via XbpBitmap(), then yes you can scale the image.

If you are creating images use Gra*() functions, you would need to invoke your own scaling algorithm.
The eXpress train is coming - and it has more cars.

Post Reply