Last active
August 15, 2017 04:49
-
-
Save immengineer/1c2169923e14522c9192ad76fc4b6143 to your computer and use it in GitHub Desktop.
JAISDK PixelFormatを指定して画像取得 PixelFormat変更
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 comboBox1_SelectedIndexChanged(object sender, EventArgs e) | |
{ | |
if (myPixelFormatNode != null) | |
{ | |
myPixelFormatNode.Value = comboBox1.SelectedItem; | |
if (m_ConversionBuffer.ImageBuffer != IntPtr.Zero) m_ConversionBuffer.ImageBuffer = IntPtr.Zero; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PixelFormat変更時は、ConversionBufferも再作成させるため