Last active
August 7, 2017 02:36
-
-
Save immengineer/7f07a236fee88ca116e4e8179c71dcc7 to your computer and use it in GitHub Desktop.
JAISDK 画像データ取得 startボタン
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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