我图像不出没有接触过
提供思路,或者源代码都可以
thanks!

解决方案 »

  1.   

    把从文件读出数据,在内存DC上显示图像, 并在DC上画一些你自己的东西,然后保存DC的内容.
      

  2.   

    可是怎么读出jpg得内容,并得到dc?
      

  3.   

    我以前只做过bmp的,对jpg还很陌生
    studying
      

  4.   

    www.vckbase.com 里面有源码,我就是利用其源码改造成一个合用的DLL来供主程序调用的。
      

  5.   

    to  ac1998() www.vckbase.com 里面的哪个?推荐一下,我在上面找了,但是不知道哪个合适,图像方面我没有任何经验,这回只是给自己做一个小程序,thanks!
      

  6.   

    VOID Example_SaveFile(HDC hdc)
    {
       Graphics graphics(hdc);   // Create an Image object based on a PNG file.
       Image  image(L"Mosaic.png");   // Draw the image.
       graphics.DrawImage(&image, 10, 10);   // Construct a Graphics object based on the image.
       Graphics imageGraphics(&image);   // Alter the image.
       SolidBrush brush(Color(255, 0, 0, 255));
       imageGraphics.FillEllipse(&brush, 20, 30, 80, 50);   // Draw the altered image.
       graphics.DrawImage(&image, 200, 10);   // Save the altered image.
       CLSID pngClsid;
       GetEncoderClsid(L"image/png", &pngClsid);
       image.Save(L"Mosaic2.png", &pngClsid, NULL);
    }
    GDI+ does not allow you to save an image to the same file that you used to construct the image. 
      

  7.   

    谢谢楼上,正在寻找GDI+是什么开发库吗?
      

  8.   

    微软的SDK提供的WindowsGDI升级版
      

  9.   

    我下载了一个,里面包含dll lib include ,并从codeproject上面下载了一个例子
    编译通过以后,但是link出错,gdiplus.lib就在lib目录下面,问题与这个帖子一样:http://expert.csdn.net/Expert/topic/2138/2138621.xml?temp=.5446283gdiplusShutdown函数出错
      

  10.   

    楼上提供的源代码里面,GetEncoderClsid函数在gdiplus里面找不到
      

  11.   

    我这没有源码,但倒是有个读jpeg和写jpeg的dll!
    如果需要可以给我来电子邮件:[email protected]
      

  12.   

    我这没有源码,但倒是有个读jpeg和写jpeg的dll!
    如果需要可以给我来电子邮件:[email protected]
      

  13.   

    GetEncoderClsid是SDK的函数,去下GDI+SDK回来看
      

  14.   

    我在msdn上已经找到该函数了,现在已经可以,但是gdiplusShutdown函数还是出错???另外我在msdn上看了一下,利用Graphics和Image类似乎能够达到我的目的,但是不知道怎么用法,主要是不知思路该怎样?thanks!
      

  15.   

    我安装了SDK,gdiplusShutdown函数还是不行,唉,先到这吧