CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1

    loading, resizing and then saving the jpg

    hey, i know there have been many threads on this but i don't think i have found what i am looking for..

    i'm using visual c++ 6.0 with MFC and im trying to find the easiest way to load (a bmp or a jpg), resize and then save it as a jpg (select quality too), by this i mean that i don't want to make my executable file a lot bigger by using a huge class that supports most image file types.. just something easy that works only for jpg's.

    so what do i really need for this?

    thanks

  2. #2
    Join Date
    Apr 2009
    Posts
    57

    Re: loading, resizing and then saving the jpg

    Well what do you have right now??? ... and what is wrong with it!

  3. #3

    Re: loading, resizing and then saving the jpg

    hmm well right now i am trying CxImage but i cannot get it to work

    http://www.codeproject.com/KB/graphics/cximage.aspx


    this is because i have never included any custom library in my projects before :P


    so i compiled the library cximage.lib, after that i created a directory in my project's directory named CxImage and placed the cximage.lib file there and then i added it to Project - Settings - Win32 Release - Link - Object/Library modules - CxImage/cximage.lib

    and when i include "ximage.h" in my project somewhere i get this error:

    fatal error C1083: Cannot open include file: 'ximage.h': No such file or directory


    am i doing something wrong?

  4. #4
    Join Date
    Apr 2009
    Posts
    57

    Re: loading, resizing and then saving the jpg

    How are you specifying the include file?

    #include ...????

    i.e., post your include statement

  5. #5

    Re: loading, resizing and then saving the jpg

    oh yeah sorry: #include "ximage.h"

    it probably needs the .h file, i thought it gets it from the .lib file (i don't know much about adding custom libraries :P)

  6. #6
    Join Date
    Apr 2009
    Posts
    57

    Re: loading, resizing and then saving the jpg

    Don't forget to specify the path

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured