I am trying to make a boardgame map that uses hexagon tiles (similar to a Catan board). In the background of each hex, I want an image that takes up the whole hexagon. The problem is, I don't have images that are nice hexagon shapes, so I was hoping to take a retangular image, crop it into the hex I've drawn, and use that. I am new to programming anything graphical, and have tried searching significantly but cannot seem to find a working solution. I have tried implementing the first solution here, but the image does not have a transparent background around the hexagon (its white instead).
Simply put, I need to take a square image, make it hexagonal, then display it at a set position. Advice?