예제 #1
0
        //int x2 = 0, y2 = 0;
        public OSD()
        {
            InitializeComponent();

            // load default font
            chars = mcm.readMCM("MinimOSD_" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString() + ".mcm");
            // load default bg picture
            try
            {
                bgpicture = Image.FromFile("vlcsnap-2012-01-28-07h46m04s95.png");
            }
            catch { }
            for(int i = 0; i < npanel;i++) {
                screen[i] = new Bitmap(30 * 12, 16 * 18);
                gr[i] = Graphics.FromImage(screen[i]);
                mousedown[i] = false;
                x[i] = 0;
                y[i] = 0;
                currentlyselected[i] = "";
            }

            pan = new Panels(this);

            // setup all panel options
            setupFunctions(); //setup panel item box
        }
예제 #2
0
        public OSD() {
			
			conf = new Config(this); // конфиг по умолчанию
						
			for (int i=0; i<npanel; i++) {
				var s = new osd_screen(i, this);
				scr[i] = s;
			}

			InitializeComponent(); 
			

            // load default font
			chars = mcm.readMCM ("MinimOSD_" + System.Reflection.Assembly.GetExecutingAssembly ().GetName ().Version.ToString () + ".mcm");
			lblPresentedCharset.Text = "Presented Charset: " + "MinimOSD_" + System.Reflection.Assembly.GetExecutingAssembly ().GetName ().Version.ToString () + ".mcm";
            try { // load default bg pic			{
				bgpicture = Image.FromFile ("vlcsnap-2012-01-28-07h46m04s95.png");
			} catch {
			}
			
            currentlyselected = "";

            print_x = 0;
            print_y = 0;
			
			screen = new Bitmap(SCREEN_W * CHAR_W, SCREEN_H * CHAR_H);
            gr = Graphics.FromImage(screen);

            pan = new Panels(this);

            // setup all panel options
            setupFunctions(); //setup panel item box
        }
예제 #3
0
        public OSD()
        {
            InitializeComponent();

            // load default font
            chars = mcm.readMCM("OSD_SA_v5.mcm");
            // load default bg picture
            try
            {
                bgpicture = Image.FromFile("vlcsnap-2012-01-28-07h46m04s95.png");
            }
            catch { }

            gr = Graphics.FromImage(screen);

            pan = new Panels(this);

            // setup all panel options
            setupFunctions();
        }
예제 #4
0
        //int x2 = 0, y2 = 0;
        public OSD()
        {
            InitializeComponent();

            // load default font
            chars = mcm.readMCM("Latest_Charset.mcm");
            // load default bg picture
            try
            {
                bgpicture = Image.FromFile("vlcsnap-2012-01-28-07h46m04s95.png");
            }
            catch { }
            for(int i = 0; i < npanel;i++) {
                screen[i] = new Bitmap(30 * 12, 16 * 18);
                gr[i] = Graphics.FromImage(screen[i]);
                mousedown[i] = false;
                x[i] = 0;
                y[i] = 0;
                currentlyselected[i] = "";
            }

            pan = new Panels(this);

            // setup all panel options
            setupFunctions(); //setup panel item box
        }