I'm trying to rescale an image on pygame but it instead crops the image, I'm just looking to change the pixel width and height of the image.
I used pygame.transform.scale
and used 1900, 600 as the parameters, the original image is a 1920x1080
mainmenu = pygame.image.load("Main_Menu.png")
mainmenu = pygame.transform.scale(mainmenu, (1900,600))
screen.blit(background, (0, 0))
I expected the image to be rescaled to a 1900x600 image but it instead output a badly cropped image in the 1900x600 format.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…