diff options
| author | tassaron | 2017-07-27 17:49:08 -0400 |
|---|---|---|
| committer | tassaron | 2017-07-27 17:49:08 -0400 |
| commit | de1324a6a75eb2a9f97d8a6b416077cfc73b2bc9 (patch) | |
| tree | 2aebc32702f193280f6332a7aa6c3f21e4390ca0 /src/components/image.py | |
| parent | 4329b0e947471ced7ca0b3460a5f40e2703117e9 (diff) | |
fixed video component eating stdout
+ made height/width into properties to simplify render methods
Diffstat (limited to 'src/components/image.py')
| -rw-r--r-- | src/components/image.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/components/image.py b/src/components/image.py index a705904..a96f127 100644 --- a/src/components/image.py +++ b/src/components/image.py @@ -31,10 +31,8 @@ class Component(Component): }, ) - def previewRender(self, previewWorker): - width = int(self.settings.value('outputWidth')) - height = int(self.settings.value('outputHeight')) - return self.drawFrame(width, height) + def previewRender(self): + return self.drawFrame(self.width, self.height) def properties(self): props = ['static'] @@ -48,10 +46,8 @@ class Component(Component): if not os.path.exists(self.imagePath): return "The image selected does not exist!" - def frameRender(self, layerNo, frameNo): - width = int(self.settings.value('outputWidth')) - height = int(self.settings.value('outputHeight')) - return self.drawFrame(width, height) + def frameRender(self, frameNo): + return self.drawFrame(self.width, self.height) def drawFrame(self, width, height): frame = BlankFrame(width, height) |
