fixed interface for saving image files @oleting
This commit is contained in:
1 parent
b924e5edb0
commit
d7bd22b997
1 file changed
+1
-1
@@ -29,7 +29,7 @@ class NassiShneidermanDiagram:
|
|||||||
h += inst.getblksize()
|
h += inst.getblksize()
|
||||||
return int(h)
|
return int(h)
|
||||||
|
|
||||||
def convert_to_image(self, filepath, filename: str, x_size: int=200):
|
def convert_to_image(self, filepath: str, filename: str, x_size: int=200):
|
||||||
image_y_sz = self._get_image_height()
|
image_y_sz = self._get_image_height()
|
||||||
logging.info(f"Saving NSD to {filename}.png...")
|
logging.info(f"Saving NSD to {filename}.png...")
|
||||||
with NSD_writer(filepath, filename, x_size, image_y_sz):
|
with NSD_writer(filepath, filename, x_size, image_y_sz):
|
||||||
|
|||||||
Reference in new issue
Block a user