Example #1
0
 private void OffsetUpDown_ValueChanged(object sender, EventArgs e)
 {
     byte[] offset = new byte[2];
     offset[0] = (byte)((int)OffsetUpDown.Value & 0x00FF);
     offset[1] = (byte)((int)OffsetUpDown.Value >> 8);
     AtikPInvoke.ArtemisCameraSpecificOptionSetData(handle, (ushort)AtikCameraSpecificOptions.ID_GOCustomOffset, offset, 2);
 }
Example #2
0
        private void GOModeComboBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            byte[] go = new byte[2];
            go[0] = (byte)GOModeComboBox.SelectedIndex;
            AtikPInvoke.ArtemisCameraSpecificOptionSetData(handle, (ushort)AtikCameraSpecificOptions.ID_GOPresetMode, go, 2);

            if (GOModeComboBox.SelectedIndex == 0)
            {
                GainBox.Visible   = true;
                OffsetBox.Visible = true;
            }
            else
            {
                GainBox.Visible   = false;
                OffsetBox.Visible = false;
            }
        }
Example #3
0
 private void BitSendModeBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     byte[] bitSend = new byte[2];
     bitSend[0] = (byte)BitSendModeBox.SelectedIndex;
     AtikPInvoke.ArtemisCameraSpecificOptionSetData(handle, (ushort)AtikCameraSpecificOptions.ID_BitSendMode, bitSend, 2);
 }
Example #4
0
 private void ExposureSpeedBox_SelectedIndexChanged(object sender, EventArgs e)
 {
     byte[] expSpeed = new byte[2];
     expSpeed[0] = (byte)ExposureSpeedBox.SelectedIndex;
     AtikPInvoke.ArtemisCameraSpecificOptionSetData(handle, (ushort)AtikCameraSpecificOptions.ID_ExposureSpeed, expSpeed, 2);
 }
Example #5
0
 private void EvenIlluminationCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     byte[] evenIllu = new byte[1];
     evenIllu[0] = Convert.ToByte(EvenIlluminationCheckBox.Checked);
     AtikPInvoke.ArtemisCameraSpecificOptionSetData(handle, (ushort)AtikCameraSpecificOptions.ID_EvenIllumination, evenIllu, 1);
 }
Example #6
0
 private void PadDataCheckBox_CheckedChanged(object sender, EventArgs e)
 {
     byte[] padData = new byte[1];
     padData[0] = Convert.ToByte(PadDataCheckBox.Checked);
     AtikPInvoke.ArtemisCameraSpecificOptionSetData(handle, (ushort)AtikCameraSpecificOptions.ID_PadData, padData, 1);
 }
Example #7
0
 private void GainUpDown_ValueChanged(object sender, EventArgs e)
 {
     byte[] gain = new byte[2];
     gain[0] = (byte)GainUpDown.Value;
     AtikPInvoke.ArtemisCameraSpecificOptionSetData(handle, (ushort)AtikCameraSpecificOptions.ID_GOCustomGain, gain, 2);
 }