Every line of 'display image in python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
215 def display_image(lcd_screen, image): 216 """ 217 Helper function to put an image on the screen. All images used with this function should be full screen images. 218 The screen is 178 by 128 pixels. In this module we're using ones that came from Lego that are full screen. 219 Smaller images can be used as well and the upper left corner does not always need to be 0, 0. 220 221 Type hints: 222 :type lcd_screen: ev3.Screen 223 :type image: Image 224 """ 225 lcd_screen.image.paste(image, (0, 0)) 226 lcd_screen.update()