Skip to content

Commit 22e6541

Browse files
committed
Fix spectrogram orientation
1 parent aeaba83 commit 22e6541

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Spectrogram/ImageMaker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public SKBitmap GetBitmap(List<double[]> ffts)
8888
value *= Intensity;
8989
value = Math.Min(value, 255);
9090

91-
int bytePosition = row * width + col;
91+
int bytePosition = (height - 1 - row) * width + col;
9292
pixelBuffer[bytePosition] = (byte)value;
9393
}
9494
});

0 commit comments

Comments
 (0)