Home » Community » Newbie corner » Real-time image drawing
Re: Real-time image drawing [message #27191 is a reply to message #27176] |
Wed, 30 June 2010 07:19   |
Mindtraveller
Messages: 917 Registered: August 2007 Location: Russia, Moscow rgn.
|
Experienced Contributor |

|
|
There is a possibility to use ImageBuffer class from Painter package to make images in run-time (just call Image(ImageBuffer &) constructor). It supports a number of effects, transparency (alpha-channel), antialiasing, gradients, vector & font rasterization, etc. You may draw this Image to the window, you may use Image as a label for Button, you may do with it everything you want.
Just execute examples/PainterExamples package to see what Painter is capable for.
So the general answer to your question is "YES, it is possible".
The main problem is efficiency. Rasterizing is "heavy" for CPU. So you have to make a simple etude where you paint some kind of FFT and check if you are pleased with its speed.
My opinion is while your effect resides in the small area of screen (say 128x64 pixels), using Painter will be sufficient enough.
If you want any large, full-screen effects, you should use OpenGL (DHCtrl or something like that - please look at example packages) control and draw everything using OpenGL. It is harder, but the only way to make true dynamic real-time graphics on both Windows/POSIX.
|
|
|
Goto Forum:
Current Time: Sun Aug 24 14:08:58 CEST 2025
Total time taken to generate the page: 0.06851 seconds
|