Skip to content

Commit

Permalink
Scale the spectrogram image with a bilinear transform for nicer result
Browse files Browse the repository at this point in the history
  • Loading branch information
tlecomte committed Feb 12, 2015
1 parent ba596dd commit ec407a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion friture/spectrogram_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def resize(self, width, height):
oldWidth = self.pixmap.width()/2
self.offset = (self.offset % oldWidth) * width/oldWidth
self.time_offset = (self.time_offset % oldWidth) * width/oldWidth
self.pixmap = self.pixmap.scaled(2*width, height)
self.pixmap = self.pixmap.scaled(2*width, height, QtCore.Qt.IgnoreAspectRatio, QtCore.Qt.SmoothTransformation)

def setcanvas_height(self, canvas_height):
if self.canvas_height <> canvas_height:
Expand Down

0 comments on commit ec407a1

Please sign in to comment.