hello everyone, although i am a programmer with experience, but i really do not understand why simple functions for scaling images are not made, maybe
I don’t know something?
for example, there is a bmp image connected as a resource with a size of 500×500 pixels, you need to scale it to an arbitrary scale, for example to
200×200 and increase by 1000×1000 (but the size will change constantly, so the option to prepare several sizes at once is not suitable.
Give me a magic pendel to keep me digging in the right direction. canvas to disassemble or can there be ready-made library solutions in the
public domain, where there is already the necessary functionality?
dken
oh thanks, I’m not so good at the nuances of oop. I’ll know now. I didn’t think that overriding protected is allowed. In C++, you can
no longer use such techniques. (Visual c++ from version 11 is)
nikolay7ko
In such cases, I use a simpler solution ( on the advice of fxsaber):
#define protected public
#include
#undef protected
trendhunter
Can’t this inclusion be made a resource?
dken
it’s A pity you can’t put likes here! Thank you so much, really cool solution and easy to use. Why don’t you put copyrights in the code
?
nikolay7ko
alexeyvik
Digging in … they won’t lead to anything. not even all image editors can do this, and you want it from mql…