Skip to content

Instantly share code, notes, and snippets.

@immengineer
Last active August 15, 2017 04:49
Show Gist options
  • Save immengineer/1c2169923e14522c9192ad76fc4b6143 to your computer and use it in GitHub Desktop.
Save immengineer/1c2169923e14522c9192ad76fc4b6143 to your computer and use it in GitHub Desktop.
JAISDK PixelFormatを指定して画像取得 PixelFormat変更
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (myPixelFormatNode != null)
{
myPixelFormatNode.Value = comboBox1.SelectedItem;
if (m_ConversionBuffer.ImageBuffer != IntPtr.Zero) m_ConversionBuffer.ImageBuffer = IntPtr.Zero;
}
}
@immengineer
Copy link
Author

PixelFormat変更時は、ConversionBufferも再作成させるため

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment