鋼彈
請問助教給的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
11/03 00:00, 1F
→
11/03 00:04, , 2F
11/03 00:04, 2F
討論串 (同標題文章)