Jump to content

Recommended Posts

Posted

Hello,

I have got my sd card working under chibios (I can read and write).

Now how do I display an bmp file that is on that sd card?

I have the basics for displaying images down just don't know how to open image from the sd card.

I will be grateful for any help.

Thank you.

Posted

Please have a look at the /demos/modules/gwin/imagebox/ demo. It does exactly what you want:


wi.g.x = 10; wi.g.y = 10; wi.g.width = 200; wi.g.height = 100;
ghImage1 = gwinImageCreate(0, &wi.g);
gwinImageOpenFile(ghImage1, "myImage.bmp");

~ Tectu

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...