#NEWLINE# @ Image . converter_to ( RGBAImageBuffer ) #NEWLINE# def to_buffer_rgba( self ) : #NEWLINE# #INDENT# image = self . image #NEWLINE# if ( self . mode != 'RGBA' ) : #NEWLINE# #INDENT# image = image . convert ( 'RGBA' ) #NEWLINE# #UNINDENT# return RGBAImageBuffer ( image . size , image . tobytes ( ) )