Page 1 of 1

Image scaling

Posted: Thu Dec 15, 2016 9:41 pm
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?

Re: Image scaling

Posted: Fri Dec 16, 2016 6:55 am
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.