You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
49 lines
1.3 KiB
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
using ShenTun.PhotoGraph;
|
|
namespace ShenTun.Camera.AForge.Tests
|
|
{
|
|
public partial class Form1 : Form
|
|
{
|
|
public Form1()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
/**
|
|
FrmCamera frm = new FrmCamera();
|
|
frm.ShowDialog();
|
|
* */
|
|
string dir = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
|
|
MessageBox.Show(dir);
|
|
|
|
}
|
|
|
|
private async void button2_Click(object sender, EventArgs e)
|
|
{
|
|
/**
|
|
CameraClient ca = new CameraClient();
|
|
await ca.ShowCameraAsync("1");
|
|
* * */
|
|
PhotoGraphMethods p = new PhotoGraphMethods();
|
|
Request r = new Request()
|
|
{
|
|
asPhotoInterface = 1,
|
|
asCapturesTotal = 100,
|
|
asCapturesTimes = 100,
|
|
asImageFormat = "jpeg",
|
|
asIsAutoConnect=true,
|
|
};
|
|
var aa= await p.getPhotoGrap(r);
|
|
}
|
|
}
|
|
}
|