Skip to content

Instantly share code, notes, and snippets.

@immengineer
Last active August 7, 2017 02:36
Show Gist options
  • Save immengineer/7f07a236fee88ca116e4e8179c71dcc7 to your computer and use it in GitHub Desktop.
Save immengineer/7f07a236fee88ca116e4e8179c71dcc7 to your computer and use it in GitHub Desktop.
JAISDK 画像データ取得 startボタン
private void StartButton_Click(object sender, EventArgs e)
{
if (myCamera != null)
{
// Set the "Stretch flag"
myCamera.StretchLiveVideo = stretchCheckBox.Checked;
// Set the NewImageDelegete, will be called for every image captured
myCamera.NewImageDelegate += new Jai_FactoryWrapper.ImageCallBack(HandleImage);
// Start the image acquisition with the picturebox windows handle. If the handle is IntPtr.Zero then a new window will be created
myCamera.StartImageAcquisition(true, 5, pictureBox1.Handle);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment