This commit is contained in:
weckyy702 committed 2020-12-27 22:22:24 +01:00
commit 1ee94e101d
6 files changed
+56 -49

No files matched your search

+3 -3
View File
@@ -29,10 +29,10 @@ class NassiShneidermanDiagram:
h += inst.getblksize()
return int(h)
def convert_to_image(self, filepath: str, filename: str, x_size: int=200):
def convert_to_image(self, filepath: str, x_size: int=200):
image_y_sz = self._get_image_height()
logging.info(f"Saving NSD to {filename}.png...")
with NSD_writer(filepath, filename, x_size, image_y_sz):
logging.info(f"Saving NSD to {filepath}.png...")
with NSD_writer(filepath, x_size, image_y_sz):
x, y = 0, 0
for instruction in self.instructions: