Skip to content

Commit 35556ff

Browse files
committed
Merge branch 'develop' of https://github.com/rhempel/ev3dev-lang-python into feature-python3-migrate
2 parents b8cce35 + ec6f27d commit 35556ff

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

ev3dev/core.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2663,6 +2663,18 @@ def draw(self):
26632663
"""
26642664
return self._draw
26652665

2666+
@property
2667+
def image(self):
2668+
"""
2669+
Returns a handle to PIL.Image class that is backing the screen. This can
2670+
be accessed for blitting images to the screen.
2671+
2672+
Example::
2673+
2674+
screen.image.paste(picture, (0, 0))
2675+
"""
2676+
return self._img
2677+
26662678
def clear(self):
26672679
"""
26682680
Clears the screen

0 commit comments

Comments
 (0)