// CreateDIBSectionFromFile248.cpp #ifndef CreateDIBSectionFromFile248header #define CreateDIBSectionFromFile248header typedef enum tagCDF{BY=24,DW=32}CDF; // BY : *lppPixel は LPBYTE型 である(24bitsDIBSection作成) // DW : *lppPixel は LPDWORD型 である(32bitsDIBSection作成) #endif int CreateDIBSectionFromFile248(char *lpFileName,HBITMAP *lphBmp,LPVOID *lppPixel,BITMAPINFO *lpBmpInfo,CDF type); // 返却値は 一行分のバイト数 です void DeleteDIBSection(HBITMAP *lphBmp);