Skip to content

Expose Screen._img as Screen.image. - #149

Merged
rhempel merged 1 commit into
ev3dev:developfrom
ensonic:develop
Jul 23, 2016
Merged

rhempel merged 1 commit into
ev3dev:developfrom
ensonic:develop

Conversation

@ensonic

@ensonic ensonic commented Mar 17, 2016

Copy link
Copy Markdown
Contributor

This is useful for blitting images to the screen.

Fixes #142

This is useful for blitting images to the screen.

Fixes ev3dev#142
@ddemidov

Copy link
Copy Markdown
Member

Just out of interest: does it accept images in any format, or do they have to be in b/w already?

@ensonic

ensonic commented Mar 18, 2016

Copy link
Copy Markdown
Contributor Author

The images need to be converted. This is what I do:

picture = Image.frombytes('1', (178, 128), IMAGES[0], 'raw', '1;IR', 0, 1)

and the static images are defined in:
https://github.com/OpenRoberta/robertalab-ev3dev/blob/develop/roberta/StaticData.py

@rhempel
rhempel merged commit ec6f27d into ev3dev:develop Jul 23, 2016
@rhempel

rhempel commented Jul 23, 2016

Copy link
Copy Markdown
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants