parameters: (self, line, size)
docstring: Print formatted image
docstring_summary: Print formatted image
docstring_tokens: Print formatted image
function: def _print_image(self, line, size):
          """ Print formatted image """
          i = 0
          cont = 0
          buffer = ""
  
         
          self._raw(S_RASTER_N)
          buffer = b"%02X%02X%02X%02X" % (int((size[0]/size[1])/8), 0, size[1], 0)
          self._raw(codecs.decode(buffer, 'hex'))
          buffer = ""
  
          while i < len(line):
              hex_string = int(line[i:i+8],2)
              buffer += "%02X" % hex_string
              i += 8
              cont += 1
              if cont % 4 == 0:
                  self._raw(codecs.decode(buffer, "hex"))
                  buffer = ""
                  cont = 0
function_tokens: def _print_image ( self , line , size ) : i = 0 cont = 0 buffer = "" self . _raw ( S_RASTER_N ) buffer = b"%02X%02X%02X%02X" % ( int ( ( size [ 0 ] / size [ 1 ] ) / 8 ) , 0 , size [ 1 ] , 0 ) self . _raw ( codecs . decode ( buffer , 'hex' ) ) buffer = "" while i < len ( line ) : hex_string = int ( line [ i : i + 8 ] , 2 ) buffer += "%02X" % hex_string i += 8 cont += 1 if cont % 4 == 0 : self . _raw ( codecs . decode ( buffer , "hex" ) ) buffer = "" cont = 0