int WINAPI icePub_dispImg(HWND hWnd,char *strImgFilename,int x,int y)
输入:hWnd 窗明弯体或控件句柄
strImgFilename 待显示的图片文件名
x x坐标
y y坐标
输出激判闷:
{
typedef int (WINAPI ICEPUB_DISPIMG)(HWND hWnd,char *strImgFilename,int x,int y)
ICEPUB_DISPIMG *icePub_dispImg = 0
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll")
if(hDLLDrv)
{
icePub_dispImg = (ICEPUB_DISPIMG *)GetProcAddress(hDLLDrv, "icePub_dispImg")
}
if(icePub_dispImg != NULL)
icePub_dispImg(m_hWnd,"b.png",10,10)
// icePub_dispImg(m_ctrlText.m_hWnd,"b.jpg",0,0)
if(hDLLDrv)
FreeLibrary(hDLLDrv)
}
{typedef int (WINAPI ICEPUB_DISPIMG)(HWND hWnd,char *strImgFilename,int x,int y)
ICEPUB_DISPIMG *icePub_dispImg = 0
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll")
if(hDLLDrv)
{
icePub_dispImg = (ICEPUB_DISPIMG *)GetProcAddress(hDLLDrv, "icePub_dispImg")
}
if(icePub_dispImg != NULL)
icePub_dispImg(m_hWnd,"b.jpg",10,10)
//孙穗敏 icePub_dispImg(m_ctrlText.m_hWnd,"族裤b.png",0,0)
if(hDLLDrv)
FreeLibrary(hDLLDrv)
}
http://dl.icese.net/dev.php?f=icePubDll.rar 下载则枝
一春凳般来讲是生成ppm
or
pnm
处理图片数据的,
但是如果你非要读取
JPG
格式的数据,
我想下面的
Library
可以帮助悄森仔启汪到你.
http://www.ijg.org/
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)