Example #1
0
        public static string CreateScreenshotFilePath(SupportedImageFormat format)
        {
            var filePath = Path.Combine(
                ScreenshotSettings.Destination,
                $"KanColle-{DateTimeOffset.Now.LocalDateTime:yyMMdd-HHmmssff}");

            return(Path.ChangeExtension(filePath, format.ToExtension()));
        }
Example #2
0
        public static string CreateScreenshotFilePath(SupportedImageFormat format)
        {
            var directory = Settings.ScreenshotSettings.Destination;

            var filePath = Path.Combine(
                directory,
                $"KanColle-{DateTimeOffset.Now.LocalDateTime.ToString("yyMMdd-HHmmssff")}"
                );

            filePath = Path.ChangeExtension(
                filePath,
                Settings.ScreenshotSettings.Format == SupportedImageFormat.Png ? ".png" : ".jpg"
                );

            return(Path.ChangeExtension(filePath, format.ToExtension()));
        }