Hello
I'm trying to figure out if wxwidgets can do what i want.
I want to make something like this but over a video
https://fengyuanchen.github.io/cropperjs/
Can this be possible using wxwidgets?
If its possible can you point me some directions?
Thanks
draw rectangle over video
Re: draw rectangle over video
There is no straight-forward way to do this with wxWidgets methods alone. Try libvlc. AFAIK you can register a callback that gives you each video frame as RGB (or in another format) data. Then you could draw this onto a window and draw custom content on top. You can try this in a small sample in plain C++ on the platform you work on. If this works, you can embed this solution into wxWidgets and use wxWidgets to build the GUI around it.
Use the source, Luke!
Re: draw rectangle over video
Hi,
Try using wxOverlay.
Thank you.
Try using wxOverlay.
Thank you.
Re: draw rectangle over video
Thanks for the tip, will look into libvlcdoublemax wrote: ↑Tue Nov 26, 2019 10:46 pm There is no straight-forward way to do this with wxWidgets methods alone. Try libvlc. AFAIK you can register a callback that gives you each video frame as RGB (or in another format) data. Then you could draw this onto a window and draw custom content on top. You can try this in a small sample in plain C++ on the platform you work on. If this works, you can embed this solution into wxWidgets and use wxWidgets to build the GUI around it.
Thanks for tip, will look into it too.
-
- Super wx Problem Solver
- Posts: 466
- Joined: Tue Jun 20, 2006 6:47 pm
- Contact:
Re: draw rectangle over video
I agree with doublemax. I think libvlc is your best (and maybe only) possibility.