Homebrew Question I dont understand this in the Switch Homebrew Example

xXxSwagnemitexXx

aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
Member
Joined
Dec 7, 2016
Messages
674
Reaction score
323
Trophies
0
Age
29
Location
New Donk City
XP
1,048
Country
United Kingdom
In editing the main.c file for examples/switch/graphics/simplegfx i found this
upload_2018-6-26_8-6-26.png

how do i get an RGB888 .bin file?
 
Make an array of unsigned bytes 1280*720*3 elements long named "imageptr". Each pixel is represented by 3 bytes, first the R value, then G value, then B value. Every 3840 bytes represent one row starting from the top of the image.
thanks
There are many converters on the internet that support png to rgb888 or jpg to rgb888.

Just use google.
i thought i had to convert from jpg/png to bin, thanks for clarification.
 

Site & Scene News

Popular threads in this forum