1. Files
VICFUNC.CPP , VICFUNC.h (build)
VIC32MS.LIB (link)
VIC32.DLL (execute)
Victor_Image_Lib (*.cpp , *.h ,*.lib , *.dll)
2. Project setting
(1) C++ \ Preprocessor : include directories - .\Victor_Image_Lib
(2) Link \ General : object\library modules - vic32ms.lib
3. Add files to project
(1)VICFUNC.CPP
(2)VICFUNC.h
Showing posts with label DIP. Show all posts
Showing posts with label DIP. Show all posts
2007-11-14
2007-08-20
Resize image using Victor image library
// source: imgbuf_ptr , destination: img_resize
imgdes *img_resize;
img_resize = new imgdes;
allocimage(img_resize,320,240, 24); // resize to 320x240
resize(imgbuf_ptr, img_resize);
savejpg(filepath,img_resize,85);
if(img_resize)
{
}
imgdes *img_resize;
img_resize = new imgdes;
allocimage(img_resize,320,240, 24); // resize to 320x240
resize(imgbuf_ptr, img_resize);
savejpg(filepath,img_resize,85);
if(img_resize)
{
freeimage(img_resize);
delete img_resize;
img_resize = NULL;
}
Subscribe to:
Posts (Atom)