|
-
May 28th, 2009, 10:31 AM
#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
-
May 28th, 2009, 11:59 AM
#2
Re: loading, resizing and then saving the jpg
Well what do you have right now??? ... and what is wrong with it!
-
May 28th, 2009, 12:39 PM
#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?
-
May 28th, 2009, 04:48 PM
#4
Re: loading, resizing and then saving the jpg
How are you specifying the include file?
#include ...????
i.e., post your include statement
-
May 28th, 2009, 05:29 PM
#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)
-
May 28th, 2009, 06:20 PM
#6
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|