only one place to define height

This commit is contained in:
j 2008-01-02 07:33:50 +00:00
parent a0a85ca1b4
commit 48e7697310

View file

@ -94,8 +94,7 @@ class GstTimeline:
self.bar = Image.new("RGB", (self.width_part + 1 ,bar_height))
img = Image.fromstring('RGB',input_d, gst_buffer)
height = 16
img = img.resize((1, height), Image.ANTIALIAS)
img = img.resize((1, bar_height), Image.ANTIALIAS)
self.frames += 1
for i in range(height):
self.bar.putpixel((self.frames, i), img.getpixel((0,i)))