We need a rather simple procedure (MSVC 6.0 / MFC) that converts given picture file (jpeg/gif/bmp) into the 24bit bmp format with optional resizing.
BOOL picLoadAndResize(LPCSTR sourceFileName, LPCSTR outputFileName, int w,int h, CString& errDescr);
w,h - new picture size
errDescr - (output) in the case of error place error description into here.
If w<0 then do not resize (keep existing size)
Returns TRUE if success, FALSE if error.
REQUIREMENTS: program size is critical, so you should NOT use big external libraries. For example you may use OleLoadPicturePath function to load the picture.
Keep in mind that if source bitmap is, say, 256-color it must be converted to the 24bit true color format. Pay speical attention to the error handling! In the case of error ouput file must be deleted (if it was created).
## Deliverables
1) Complete, fully-functional and tested procedure (source code in C++ (MCVC6.0/MFC))
2) Deliverables must be in ready-to-use condition 3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Win32