示例#1
0
        /// <summary>
        /// Gets a file name suffixed with width information from the image
        /// </summary>
        /// <param name="filename">The base file name</param>
        /// <param name="size">The image width to be suffixed</param>
        /// <returns>The file name suffixed with width information from the image (filename + "-w###")</returns>
        public string GetResizedFileName(string filename, int size)
        {
            Filename imageFilename = new Filename(filename);

            return(imageFilename.BaseName + "-w" + size.ToString() + imageFilename.Extension);
        }