array conver image

請問一下,自己用CCD模組搭配DAQ Card 的 DIO 收到 array data

我要怎樣將這個array data轉換成image?

http://it360.tw/forum/forum_posts.asp?TID=12815&KW=array+image

參考此篇內程式的前半部分