
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I need to develop a solution. My window consists of a set of MT objects - canvases. Their images need to be reduced first individually and then combined into one. We need such an algorithm. That is, let's say, individually, but to combine the reduced images, not yet.
Calculating the change in relative coordinates of the objects. They have a starting point. X and Y. Recalculate them relative to the total size in width and height of the total canvas - window.
Calculating the change in the relative coordinates of the objects. They have a starting point. X and Y. Recalculate them relative to the total width and height of the overall kanvas - window.
I get the idea. I'll give it a try if Nikolai says no. Thank you.
I need to develop a solution. My window consists of a set of MT objects - canvases. Their images need to be reduced first individually and then combined into one. We need such an algorithm. That is, let's say, individually, but to combine the reduced images, not yet.
First of all, of course, it has to be made. I mean, it has to have a bit of a coherent look. Even in the old days they said - stop, let out ... But never mind, the train will not stop ;-) let's consider that this is the eternal author's version ...
Since we're dancing with C#, look at OpenGL to be "ahead of the planet". And draw with it on "canvas" (but in decent places it's not called that, it's context). It will be crazy fast and you can overlay, scale, rotate, twist as you like.
Calculating the change in relative object coordinates. They have a starting point. X and Y. Recalculate them relative to the overall width and height of the overall canvas - window.
First of all, of course, it has to be made. I mean, it has to have a bit of a coherent look to it. The first thing you need to do is to make it look a little more holistic... It's like they used to say back in the day - stop, let it out...but come on, the train will never stop ;-) let's just say it's the eternal author's version...
Since we're dancing with C#, look at OpenGL to be "ahead of the planet". And draw with it on "canvas" (but in decent places it's not called that, it's context). It will be crazy fast and you can overlay, scale, rotate, twist as you like.
This method of vector scaling would be visually very much inferior to raster scaling. And what about text? Font size will be disproportionately "jumpy".
First thing that came to mind. Probably influenced by my long time experience with vector graphics in 3D Studio MAX - I'm used to thinking in such a way. Yes, it's all in dubles of course, and by the way, very much visually wins over raster scaling in photoshop.
This method of vector scaling would be visually very much inferior to raster scaling. And what about text? Font size will be disproportionately "jumpy".
And here's where it occurred to me: take a raster image of the required window-form, and then scale it as a single raster object.
And here's where it occurred to me: take a bitmap of the required window-shape and then scale it as a single bitmap object.
What else could it be? I think that's what Peter wanted.
Here is a ready-to-use function for scaling up an image stored in BMP[] array with sizewidth_bmp xheight_bmp