I have tried to display a photo in a Fyne window but it is much smaller than I want it.
With a window name "w", I used "w.setContent()" to display the photo. However, it is tiny and in the top left corner. I want to control the dimensions of the photo. How do I do this?
png.Encode(myFile, myImage)
defer myFile.Close()
thisImage := canvas.NewImageFromFile(imagePath)
thisImage.FillMode = canvas.ImageFillOriginal
fmt.Println("checking window: ", w)
fmt.Println("checking image", thisImage)
w.SetContent(thisImage)