When you create a new Pygame surface:
pygame.Surface((width, height), flags=0, depth=0, masks=None)
Do you have to call .convert() on it to change its pixel format, or is that already done for you when you create it?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
convertis only used when changing pixel formats (for example, going from indexed to rgb). The surface will be created with RGB by default and you should only need to convert it if that isn’t what you need (it almost always is).