This file contains hidden or 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); |
This file contains hidden or 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 Form1_Resize(object sender, EventArgs e) | |
{ | |
// Here we need to resize the Child Window image display | |
if (myCamera != null) | |
{ | |
Jai_FactoryWrapper.RECT newRectSize; | |
if (myCamera.StretchLiveVideo) | |
newRectSize = new Jai_FactoryWrapper.RECT(0, 0, pictureBox1.Width, pictureBox1.Height); | |
else | |
newRectSize = new Jai_FactoryWrapper.RECT(0, 0, Convert.ToInt32(myCamera.GetNode("Width").Max), Convert.ToInt32(myCamera.GetNode("Height").Max)); |
This file contains hidden or 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; | |
// 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); |
This file contains hidden or 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) | |
myCamera.StartImageAcquisition(true, 5); | |
} | |
private void StopButton_Click(object sender, EventArgs e) | |
{ | |
if (myCamera != null) | |
myCamera.StopImageAcquisition(); |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Text; | |
using System.Windows.Forms; | |
using Jai_FactoryDotNET; | |
namespace SimpleImageDisplaySample |
NewerOlder