Created
September 20, 2014 09:03
-
-
Save karaage0703/e530255b5db23c6302c1 to your computer and use it in GitHub Desktop.
display image for Nakayoshi camera
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*0 coding: utf-8 -*- | |
import pygame | |
pygame.init() | |
size = (pygame.display.Info().current_w, pygame.display.Info().current_h) | |
print "Framebuffer size: %d x %d" % (size[0], size[1]) | |
screen = pygame.display.set_mode(size, pygame.FULLSCREEN) | |
img = pygame.image.load("./data/cameratest.jpg").convert() | |
img = pygame.transform.scale(img, (pygame.display.Info().current_w, pygame.display.Info().current_h)) | |
screen.blit(img, (0,0)) | |
while True: | |
pygame.display.update() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment