Questions about using SD cards

So I’m kind of new to this class. In the API i’ve been seeing a lot of parameters with “buffer” and I don’t really know what exactly it is and how to use it in the context of VEX. Also what excatly is the difference between drawImageFromBuffer and drawImageFromFile. When and how would you use these?

The buffer basically means allocated data for a specific file. As long as the buffer is larger than the file size, you will be good to go.

ah so is it ok if i make the buffer size really big?

1 Like

stick with drawImageFromFile, drawImageFromBuffer is used if you have previously read in an image using file IO or have converted an image and added to the code as static data.

2 Likes