parameters: (self, x, y='')
return_statement: return destImage
docstring: Return a new PhotoImage based on the same image as this widget
          but use only every Xth or Yth pixel.  If y is not given, the
          default value is the same as x.
docstring_summary: Return a new PhotoImage based on the same image as this widget
          but use only every Xth or Yth pixel.  If y is not given, the
          default value is the same as x.
docstring_tokens: Return a new PhotoImage based on the same image as this widget but use only every Xth or Yth pixel . If y is not given the default value is the same as x .
function: def subsample(self, x, y=''):
          """Return a new PhotoImage based on the same image as this widget
          but use only every Xth or Yth pixel.  If y is not given, the
          default value is the same as x.
          """
          destImage = PhotoImage(master=self.tk)
          if y=='': y=x
          self.tk.call(destImage, 'copy', self.name, '-subsample',x,y)
          return destImage
function_tokens: def subsample ( self , x , y = '' ) : destImage = PhotoImage ( master = self . tk ) if y == '' : y = x self . tk . call ( destImage , 'copy' , self . name , '-subsample' , x , y ) return destImage