P
P
Prizm2020-06-21 13:17:01
Windows Forms
Prizm, 2020-06-21 13:17:01

How to draw an image in real time in windows forms?

Hello. For a project, I need to implement visualization of dynamic processes. I used to use fstream in c++ before because there was no strong need for high rendering speed. Later I switched to visual studio and bitmap drawing via setpixel, but due to the fact that drawing takes place in a double cycle, rendering of one frame takes up to 10-15 seconds, which is not very fast. How can you speed this up? As far as I know, it is possible to transfer all calculations to gpu, because. the color of each pixel is calculated according to the same logic (for example, using the function double getcolor(double x, double y)). What is the easiest tool to do this? And what are some examples to look at?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2020-06-21
@PrizmMARgh

If using WinForms is not important, look towards WPF, which is rendered using DirectX. There is also a Canvas on which you can already draw as you like.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question