24位RGB位圖轉換成1位位圖

1位位圖數據,每一個像素點只有一個bit,0 or 1,0表示圖像中的0,1表示255,在保存位圖的時候須要在顏色表中指出。code unsigned char* BMP24TOBMP1(unsigned char* img, int width, int height) { int src_row_bytes; int dst_row_bytes; unsigned char* dst=
相關文章
相關標籤/搜索