1.0.5
This commit is contained in:
@@ -119,7 +119,9 @@ namespace CandyboxPlugin.Recipe
|
||||
}
|
||||
|
||||
File.WriteAllText(_configurationPath, JsonSerializer.Serialize(_learnedParameters, new JsonSerializerOptions() { WriteIndented = true }));
|
||||
image.Resize(ThumbnailSize).SaveImage(Path.Combine("..\\Data\\Samples", Path.GetFileNameWithoutExtension(_recipeName) + ".bmp"));
|
||||
var fullSamplePath = Path.GetFullPath(Path.Combine("..\\Data\\Samples", _recipeName + ".bmp"));
|
||||
Directory.CreateDirectory(Path.GetDirectoryName(fullSamplePath));
|
||||
image.Resize(ThumbnailSize).SaveImage(fullSamplePath);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user