How to Display Image on V5 Brain?

does anyone know how to display an image on a vex brain? thx :slight_smile:

Search bar is your friend.

5 Likes

I’ve tried those, in vex code v5 pro it doesn’t recognise that command :frowning:

There are definitely replies in some of those threads that show how to display images on the brain in VEXcode pro V5.

The relevant function call is brain::lcd::drawImageFromFile.

If you’re having trouble using that function, post your code and someone can take a look at it.

3 Likes

ok thx

image
its not working :frowning:

Brain.Screen.drawImageFromFile

9 Likes

thank you :slight_smile: however now its giving me this error image

do i need to specify image length and width?

look at the API that was linked above, you need to specify position.
The image needs to be either a .bmp or .png image, a jpeg image will not work.
The image needs to be no larger than the V5 screen, it will not be resized.

image

7 Likes

ok, thank you :slight_smile:

I also have the same question. Thanks for solutions.

1 Like

Read the documentation James posted above.

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.