VC来实现格式转换,不知道从何下手啊,哪位有这方面的代码可以跟贴,也可以发到我邮箱[email protected],谢谢拉

解决方案 »

  1.   

    CxImage 类库. 网上多得狠. 楼主找找, 这个可以实现许多图片格式的操作
      

  2.   

    我今天刚使用 CxImage ,碰到了难题,不止如何解决。 我的想法是调用采集卡的sdk ,将采集到的每一帧 用CxImage 转换为JPEG文件 然后显示 但是碰到了编译错误 ,也不清楚 该错误到底是什么意思?
    --------------------Configuration: TestCxImageEXE - Win32 Release--------------------
    Linking...
       Creating library Release/TestCxImageEXE.lib and object Release/TestCxImageEXE.exp
    TestCxImageEXEDlg.obj : error LNK2001: unresolved external symbol _X11_FreeBuffer
    TestCxImageEXEDlg.obj : error LNK2001: unresolved external symbol _X11_GetImageSize
    TestCxImageEXEDlg.obj : error LNK2001: unresolved external symbol _X11_ResetStatus
    TestCxImageEXEDlg.obj : error LNK2001: unresolved external symbol _X11_StopAcquire
    TestCxImageEXEDlg.obj : error LNK2001: unresolved external symbol _X11_GetStatus
    TestCxImageEXEDlg.obj : error LNK2001: unresolved external symbol _X11_StartAcquire
    TestCxImageEXEDlg.obj : error LNK2001: unresolved external symbol _X11_SetMode
    TestCxImageEXEDlg.obj : error LNK2001: unresolved external symbol _X11_AllocBuffer
    TestCxImageEXEDlg.obj : error LNK2001: unresolved external symbol _X11_GetHFG
    TestCxImageEXEDlg.obj : error LNK2001: unresolved external symbol _X11_InitSystem
    TestCxImageEXEDlg.obj : error LNK2001: unresolved external symbol _X11_DLLOpen
    Release/TestCxImageEXE.exe : fatal error LNK1120: 11 unresolved externals
    Error executing link.exe.TestCxImageEXE.exe - 12 error(s), 0 warning(s)
      

  3.   

    GDIPlus是什么东西?
    这个BMP转GIF是数字图像处理课程的作业,要自己写的阿,还要用median-cut算法,LZW压缩。郁闷!
    Bitmap文件VC里面有专门的数据结构,GIF没有,怎么办?要自己写struct or Class吧?烦!
      

  4.   

    不好意思我有!
    不过是把 GIF 的转成 GIF JPEG 的!!!
      

  5.   

    刚打错了 GIF->BMP,JPEG BMP<->JPEG
    [email protected]
      

  6.   

    如果是作业的话。
    按照Gif的文件格式写文件头结构和压缩算法。
    之前如果Bmp大于256色的话,还要用抖动算法选出256色调色板再能进行数据压缩。
      

  7.   

    文件头结构比较复杂,写起来好麻烦,有个例子就比较好了,HOHO~