13 lines
415 B
Python
13 lines
415 B
Python
|
from DisplayAdapter import DisplayAdapter
|
||
|
|
||
|
class ImageFileAdapter (DisplayAdapter):
|
||
|
"""Saves design to an image file, can be used for debugging"""
|
||
|
def __init__ (self, file_path = ""):
|
||
|
super(ImageFileAdapter, self).__init__(640, 384)
|
||
|
self.file_path = file_path
|
||
|
|
||
|
def render (self, design):
|
||
|
design.save(self.file_path + 'design_exported.png')
|
||
|
|
||
|
def calibrate (self):
|
||
|
pass
|