Thread: adding images
View Single Post
Old May 3rd, 2006, 10:19 PM   #2
Sane
Programming Guru
 
Sane's Avatar
 
Join Date: Apr 2005
Location: Waterloo, Ontario
Posts: 1,835
Rep Power: 5 Sane will become famous soon enough
Send a message via MSN to Sane
Download Pygame

import pygame

# initiate pygame
pygame.init()

# create screen
screen = pygame.display.set_mode((300,300))

# load image
image = pygame.image.load("my_image.bmp")

# draw image
screen.blit(image, (0, 0))

# update screen
pygame.display.flip()
Sane is online now   Reply With Quote