private void button1_Click(object sender, EventArgs e)
{
axPlayer1.SetConfig(102,textBox1.Text);
axPlayer1.Open(filen);
allright = true;
}
private void timer1_Tick(object sender, EventArgs e)
{
this.Text = "GIF截取中..." + axPlayer1.GetConfig(712);
}
private void Form3_Load(object sender, EventArgs e)
{
axPlayer1.SetConfig(15,"1");
axPlayer1.SetConfig(12, "1");
textBox1.Text = start;
textBox2.Text = (Convert.ToInt32(start) + 6000).ToString();
string str = System.AppDomain.CurrentDomain.BaseDirectory;
axPlayer1.SetConfig(2, str + "Yj");
Bitmap bmp = Properties.Resources.aa;
axPlayer1.SetCustomLogo(bmp.GetHbitmap().ToInt32());
}
private void axPlayer1_OnStateChanged(object sender, AxAPlayer3Lib._IPlayerEvents_OnStateChangedEvent e)
{
}
private void jiequ()
{
axPlayer1.SetConfig(707, "4");
axPlayer1.SetConfig(703, "800");
axPlayer1.SetConfig(704, "600");
int i = Convert.ToInt32(textBox2.Text) - Convert.ToInt32(textBox1.Text);
axPlayer1.SetConfig(709, "length=" + i.ToString() + ";cutinterval=200;playinterval=100");
axPlayer1.SetConfig(702, "截图.gif");
if (axPlayer1.GetConfig(711) != "1")
{
MessageBox.Show("失败");
}
else
{
timer1.Start();
}
}
private void axPlayer1_OnEvent(object sender, AxAPlayer3Lib._IPlayerEvents_OnEventEvent e)
{
if (e.nEventCode == 10005 && e.nEventParam == 0)
{
MessageBoxEx.Show("截取成功!");
}
}
private void axPlayer1_OnOpenSucceeded(object sender, EventArgs e)
{
jiequ();
}
这为什么不能截取啊