Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
display image for Nakayoshi camera
# -*0 coding: utf-8 -*-
import pygame
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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.