This is a typical layout:
myimage = pygame.image.load("myimage.bmp")
imagerect = myimage.get_rect()
while 1:
your_code_here
screen.fill(black)
screen.blit(myimage, imagerect)
pygame.display.flip()
More Related Contents:
- Could not open resource file, pygame error: “FileNotFoundError: No such file or directory.”
- What is a good way to draw images using pygame?
- Is there any other way to load a resource like an image, sound, or font into Pygame? [closed]
- Pygame image transparency confusion [duplicate]
- How can I crop an image with Pygame?
- PIL and pygame.image
- How to rotate an image around its center while its scale is getting larger(in Pygame)
- How can I load an animated GIF and get all of the individual frames in Pygame?
- Pyinstaller Unable to access Data Folder
- Convert string in base64 to image and save on filesystem
- How to merge a transparent png image with another image using PIL
- Why does it say that module pygame has no init member?
- jumping too fast?
- Get pixel’s RGB using PIL
- Interactive pixel information of an image in Python?
- How to display text in pygame? [duplicate]
- What is causing this AttributeError?
- How to move Sprite in Pygame
- Displaying unicode symbols using pygame
- Python – Find dominant/most common color in an image
- How to move a sprite according to an angle in Pygame
- How to add a background image into pygame?
- Adding collision to maze walls
- How to show PIL images on the screen?
- How can I obtain the image size using a standard Python class (without using an external library)?
- How to install pygame? [duplicate]
- Pygame not showing anything in the window [duplicate]
- Pygame Rotated Shooting
- How to store an image in a variable
- 2D Convolution in Python similar to Matlab’s conv2