title: Centering an image as canvas on tkinter
body: <pre><code>canvas = tk.Canvas(root, height=400, width=1100)
  image = PhotoImage(file=&quot;C:\\Users\\name\\Pictures\\picture.png&quot;)
  canvas.create_image(0, 0, anchor=&quot;center&quot;, image=image)
  canvas.place(relx=0.5, rely=0.5, anchor=&quot;center&quot;)
  root.resizable(width=False, height=False)
  canvas.pack()
  </code></pre>
  <p>I have tried making an image the canvas for my GUI and it will not center it self on the application...I've tried all types of functions like relative X and Y to the canvas and anchoring but I can't seem to get it to center it self..</p>