Esempio n. 1
0
    private string PictureToSwf(string toolpath, string fullPathName, string destPath)
    {
        string fileNameWithoutEx = Path.GetFileNameWithoutExtension(fullPathName);
        string extendName        = Path.GetExtension(fullPathName).ToLower();
        string saveName          = destPath + fileNameWithoutEx + ".swf";
        string returnValue       = fileNameWithoutEx + ".swf";

        if (extendName == ".gif")
        {
            PreviewDocumetHelper.GifPicturesToSwf(toolpath, fullPathName, saveName);
        }
        else
        {
            PreviewDocumetHelper.PicturesToSwf(toolpath, fullPathName, saveName);
        }
        return(returnValue);
    }