public boolean createthumbnail() throws exception
{
// fileextnmae是图片的格式 gif jpg 或png
// string fileextnmae="";
double ratio = 0.0;
file f = new file(fromdir,imgfile);
if ( !f.isfile() )
throw new exception(f+" is not image file error in createthumbnail!");