Browse Source

output to the "prod" photos location. also make sure there's at least one thumbnail in the ribbon

main
Colin McMillen 11 months ago
parent
commit
c68f42915c
  1. 4
      Program.cs

4
Program.cs

@ -474,7 +474,7 @@ public class UiGeometry {
public UiGeometry(Vector2i windowSize, int starSize) {
WindowSize = windowSize;
int numThumbnails = WindowSize.Y / 100;
int numThumbnails = Math.Max(WindowSize.Y / 100, 1);
int thumbnailHeight = WindowSize.Y / numThumbnails;
int thumbnailWidth = (int) 1.0 * thumbnailHeight * activeCamera.Resolution.X / activeCamera.Resolution.Y;
@ -912,7 +912,7 @@ public class Game : GameWindow {
// FIXME: show a progress bar or something.
private async void ExportPhotos() {
JpegEncoder encoder = new JpegEncoder() { Quality = 100 };
string outputRoot = @"c:\users\colin\desktop\totte-output";
string outputRoot = @"c:\users\colin\pictures\photos\";
foreach (Photo p in photos) {
await Task.Run( () => { p.SaveAsJpeg(outputRoot, encoder); });
}

Loading…
Cancel
Save