示例#1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            m_objFile = new MFileClass();
            m_objLive = new MLiveClass();

            m_objLive.PreviewWindowSet("", panel1.Handle.ToInt32());
            m_objLive.PreviewEnable("", 0, 1);

            m_objLive.DeviceSet("video", "Medialooks DXGI/DX11 ScreenCapture", "");
            m_objLive.ObjectStart(null);

            UpdateList();

            m_objCharGen = new MLCHARGENLib.CoMLCharGen();
            m_objLive.PluginsAdd(m_objCharGen, 0);


            // Frames counter
            string strID = "";

            m_objCharGen.AddNewItem("<text type=counter size=4.0>XXXXXX</text>", 0.1, 0.2, 1, 1, ref strID);
        }
示例#2
0
 protected override void Attach(CoMLCharGen charGen, string id)
 {
     charGen.AddNewItem(this.FileNameOrItemDesc, this.X, this.Y, Convert.ToInt32(this.IsRelative), Convert.ToInt32(this.Visible), ref id);
 }