#NEWLINE# @ classmethod #NEWLINE# def register( cls , reg , basic ) : #NEWLINE# #INDENT# reg . add_module ( cls , name = 'ImageToFile' , namespace = cls . my_namespace ) #NEWLINE# reg . add_input_port ( basic , 'Suffix' , ( basic . String , 'Suffix' ) ) #NEWLINE# reg . add_input_port ( cls , 'Pixel Type' , ( PixelType , 'Pixel Type' ) , True ) #NEWLINE# reg . add_input_port ( cls , 'Dimension' , ( basic . Integer , 'Dimension' ) , True ) #NEWLINE# reg . add_input_port ( cls , 'Image' , ( Image , 'Image' ) ) #NEWLINE# reg . add_output_port ( cls , 'File' , ( basic . File , 'File' ) )