Hi,
I'm playing with the OSD for VLC. See my screenshot. Has somebody else already tried something with it ? Is it possible to have text as well instead of icons ?
Quick test for everybody:
In the VLC dir I ececute
"vlc whaterver.mpg --extraintf rc --sub-filter osdmenu --osdmenu-file=osdmenu/dvd.cfg"
and the in the vlc window I write
"menu on"
there it is....
Looks very easy ? Or not...
read more here->
http://www.videolan.org/developers/vlc/doc/doxygen/html/group__osdmenu.html#_details
The only way I can see - draw the osd and save the file in the background
Bitmap bmap = new Bitmap (pictureBox1.Image);
Graphics g = Graphics.FromImage(bmap);
g.DrawString(DateTime.Now.ToLongTimeString(), new Font("Arial", 12, FontStyle.Regular), Brushes.Black, 10, 33);
pictureBox1.Image = bmap;
g.Dispose();
pictureBox1.Image.Save(@"C:\Pic.png");
(here I just put the time from now)
Greetz kroko
I'm playing with the OSD for VLC. See my screenshot. Has somebody else already tried something with it ? Is it possible to have text as well instead of icons ?
Quick test for everybody:
In the VLC dir I ececute
"vlc whaterver.mpg --extraintf rc --sub-filter osdmenu --osdmenu-file=osdmenu/dvd.cfg"
and the in the vlc window I write
"menu on"
there it is....
Looks very easy ? Or not...
read more here->
http://www.videolan.org/developers/vlc/doc/doxygen/html/group__osdmenu.html#_details
The only way I can see - draw the osd and save the file in the background
Bitmap bmap = new Bitmap (pictureBox1.Image);
Graphics g = Graphics.FromImage(bmap);
g.DrawString(DateTime.Now.ToLongTimeString(), new Font("Arial", 12, FontStyle.Regular), Brushes.Black, 10, 33);
pictureBox1.Image = bmap;
g.Dispose();
pictureBox1.Image.Save(@"C:\Pic.png");
(here I just put the time from now)
Greetz kroko