picb.image = (image)map;
string path = filepath.substring( 0,filepath.lastindexof( "\\" ) );
if (!directory.exists(path))
{
createdir( path );
}
picb.image.save(filepath);
}
catch(exception exp)
{