在VC6.0中如何调整bmp大小
1个回答
2012-04-29
展开全部
原型:
int WINAPI icePub_dispImg2(HWND hWnd,char *strImgFilename,int x,int y,int width,int height)
输入:hWnd 窗体或控件句柄
strImgFilename 待显示的图片文件名
x x坐标
y y坐标
width 宽
height 高
输出:
{
typedef int (WINAPI ICEPUB_DISPIMG2)( HWND hWnd,char *strImgFilename,int x,int y,int width,int height);
ICEPUB_DISPIMG2 *icePub_dispImg2 = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_dispImg2 = (ICEPUB_DISPIMG2 *)GetProcAddress(hDLLDrv, "icePub_dispImg2");
}
if(icePub_dispImg2 != NULL)
icePub_dispImg2(m_hWnd,"b.png",0,10,50,80);
if(hDLLDrv)
FreeLibrary(hDLLDrv);
}
int WINAPI icePub_dispImg2(HWND hWnd,char *strImgFilename,int x,int y,int width,int height)
输入:hWnd 窗体或控件句柄
strImgFilename 待显示的图片文件名
x x坐标
y y坐标
width 宽
height 高
输出:
{
typedef int (WINAPI ICEPUB_DISPIMG2)( HWND hWnd,char *strImgFilename,int x,int y,int width,int height);
ICEPUB_DISPIMG2 *icePub_dispImg2 = 0;
HINSTANCE hDLLDrv = LoadLibrary("icePubDll.dll");
if(hDLLDrv)
{
icePub_dispImg2 = (ICEPUB_DISPIMG2 *)GetProcAddress(hDLLDrv, "icePub_dispImg2");
}
if(icePub_dispImg2 != NULL)
icePub_dispImg2(m_hWnd,"b.png",0,10,50,80);
if(hDLLDrv)
FreeLibrary(hDLLDrv);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询