#NEWLINE# def save_rgb_image_as_file( self , filepath , format = 'png' , quality = 90 ) : #NEWLINE# #INDENT# qimg = self . get_rgb_image_as_widget ( ) #NEWLINE# res = qimg . save ( filepath , format = filepath , quality = quality )