鋼彈

看板b95902HW作者 (平平)時間17年前 (2006/11/02 23:51), 編輯推噓1(101)
留言2則, 1人參與, 最新討論串2/4 (看更多)
請問助教給的example的程式碼 #include <stdio.h> #include "bmp.h" int main(void) { unsigned char *bytes; BITMAPINFO *info; //file header int height; int width; bytes=LoadDIBitmap("red.bmp", &info); height=info->bmiHeader.biHeight; width=info->bmiHeader.biWidth; bytes[0]=255; //change left-down pixel to white SaveDIBitmap("out.bmp", info, bytes); return (0); } 要直接複製到主程式中嗎?? 還是要更改啥麼?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.120.153.129

11/03 00:00, , 1F
請參考這個example 寫出自己的code
11/03 00:00, 1F

11/03 00:04, , 2F
如果有需要 可以複製example裡面的任何東西
11/03 00:04, 2F
文章代碼(AID): #15IXGH1I (b95902HW)
討論串 (同標題文章)
文章代碼(AID): #15IXGH1I (b95902HW)