private void bnSeq1_Click(object sender, EventArgs e) { Byte[] ChessBoard64 = new Byte[m_DmdWidth * m_DmdHeight]; // Fill ChessBoard64 with a Chess Board pattern for (Int32 y = 0; y < m_DmdHeight; y++) { for (Int32 x = 0; x < m_DmdWidth; x++) { if (((x & 64) == 0) ^ ((y & 64) == 0)) { ChessBoard64[y * m_DmdWidth + x] = 0; } else { ChessBoard64[y * m_DmdWidth + x] = 255; // >=128: white } } } AlpImport.Result result; // Load image data from PC memory to ALP memory result = AlpImport.SeqPut(m_DevId, m_SeqId1, 0, 0, ref ChessBoard64); txResult.Text = "SeqPut " + AlpErrorString(result); // Start display if (AlpImport.Result.ALP_OK != result) { return; // error -> exit } result = AlpImport.ProjStartCont(m_DevId, m_SeqId1); txResult.Text = "ProjStartCont " + AlpErrorString(result); }
private void bnSeq2_Click(object sender, EventArgs e) { Byte[] Stripes32 = new Byte[m_DmdWidth * m_DmdHeight]; // Fill Stripes32 with vertical stripes for (Int32 y = 0; y < m_DmdHeight; y++) { for (Int32 x = 0; x < m_DmdWidth; x++) { if (((x & 32) == 0)) { Stripes32[y * m_DmdWidth + x] = 0; } else { Stripes32[y * m_DmdWidth + x] = 255; // >=128: white } } } AlpImport.Result result; // Load image data from PC memory to ALP memory result = AlpImport.SeqPut(m_DevId, m_SeqId2, 0, 0, ref Stripes32); txResult.Text = "SeqPut " + AlpErrorString(result); // Start display if (AlpImport.Result.ALP_OK != result) { return; // error -> exit } result = AlpImport.ProjStartCont(m_DevId, m_SeqId2); txResult.Text = "ProjStartCont " + AlpErrorString(result); }