能带放大.缩小功能吗?

解决方案 »

  1.   

    Simple class for drawing pictures (jpg, tif, gif, etc...)
    http://www.codeproject.com/bitmap/cpicture.asp
      

  2.   

    下载使用paintlib这个免费库,各种图片文件都可以处理。
    或者使用leadtools图片控件。可以缩放。
      

  3.   

    我这儿有个动态库,可以处理以下图像格式:
    * 0 - BMP
    * 1 - JPG或JPEG
    * 2 - PCX
    * 3 - TGA
    * 4 - ICO
    * 5 - TIF或TIF
    * 6 - PNG
    * 7 - WMF -支持读取操作
    需要的话留个信箱
      

  4.   

    http://www.codeproject.com/bitmap/cximage.asp
      

  5.   

    动态库导出函数头文件如下:
    #ifndef ZIMGLOAD_H
    #define ZIMGLOAD_H#include <Afxtempl.h>
    DECLARE_HANDLE(HDIB);
    #ifdef __cplusplus
    extern "C" {
    #endif
    HDIB WINAPI ZLoadImg (LPCTSTR lpszFilename);BOOL WINAPI ZSaveImg (HDIB hDIB, LPCTSTR lpszFilename, int nImgFormat);
    #ifdef __cplusplus
    }
    #endif#endif /* ZIMGLOAD_H *//* 附表-图像格式类型参数对照表
    *
    *     nImgFormat  图像格式类型
    *
    * 0 - BMP
    * 1 - JPG或JPEG
    * 2 - PCX
    * 3 - TGA
    * 4 - ICO
    * 5 - TIF或TIF
    * 6 - PNG
    * 7 - WMF -支持读取操作
    */
    BOOL WINAPI ZSaveImg (HDIB hDIB, LPCTSTR lpszFilename)
    {
        char Format[8];
        for(int i=strlen(lpszFilename)-1;i>=0;i--)
    if(lpszFilename[i]=='.') break; for(int j=i+1;j<(int)strlen(lpszFilename);j++)
    Format[j-i-1]=lpszFilename[j];
    Format[j-i-1]='\0'; int nFormat=-1;
      
    if(stricmp(Format,"BMP")==0) nFormat=0;
    if(stricmp(Format,"JPG")==0 || stricmp(Format,"JPGE")==0) nFormat=1;
    if(stricmp(Format,"PCX")==0) nFormat=2;
    if(stricmp(Format,"TGA")==0) nFormat=3;
    if(stricmp(Format,"ICO")==0) nFormat=4;
    if(stricmp(Format,"TIF")==0) nFormat=5;
        if(stricmp(Format,"PNG")==0) nFormat=6;
        
    if(nFormat!=-1)
    return ZSaveImg(hDIB,lpszFilename,nFormat);
    else return 0;
    }
      

  6.   

    快乐鹦鹉,我的信箱是hellopine◎163.com
      

  7.   

    [email protected]吧?
    已经发送了
      

  8.   

    happyparrot(快乐鹦鹉) 
    给我发份谢谢。。我想要具体点。麻烦你了。
    [email protected]