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.”
- 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 to draw images and sprites in pygame?
- How can I load an animated GIF and get all of the individual frames in Pygame?
- Pygame mouse clicking detection
- How can I make a sprite move when key is held down
- Add scrolling to a platformer in pygame
- Pygame unresponsive display [duplicate]
- Convert string in base64 to image and save on filesystem
- How to define a threshold value to detect only green colour objects in an image with Python OpenCV?
- calculating direction of the player to shoot pygame
- Draw a transparent rectangles and polygons in pygame
- Python OpenCV Color Tracking
- Image library for Python 3
- Python OpenCV line detection to detect `X` symbol in image
- How can I show explosion image when collision happens?
- How do you merge images into a canvas using PIL/Pillow?
- Move Character with Vector
- How to display an image after a time interval?
- How to Split Image Into Multiple Pieces in Python
- How to add a background image into pygame?
- Adding collision to maze walls
- How to install pygame? [duplicate]
- Python – create an EXE that runs code as written, not as it was when compiled
- Pygame not showing anything in the window [duplicate]
- Pygame Rotated Shooting