Answers for "pygame image scaling too large"

-2

rezise object pygame

import pygame

# Load picture
picture = pygame.image.load("your/file/directery.png") # choose a picture and spesefy directery

# Resize
picture = pygame.transform.scale(picture # spesefy the objekt, (100, 100))# here is the scale by pixels
Posted by: Guest on January-06-2021

Python Answers by Framework

Browse Popular Code Answers by Language