Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Any Chance to Use Bitmaps
#1
Hello everyone,
Just for hobby I'm working on Cosmos. I couldn't find any tutorial like any kind of document for printing bitmap images on cosmos screen. 
Is there no way to print bitmap *.bmp files or If there is a way to do it please give me some document. 
Thank you,
Reply
#2
Hello,
yes Cosmos does support bitmaps:

https://github.com/CosmosOS/Cosmos/blob/...nel.cs#L85

in this example we have the bitmap data on a byte array but there is a constructor that take a file path too:
https://github.com/CosmosOS/Cosmos/blob/...map.cs#L32.

Please notice that too big Bitmaps will be slow to be drawn on screen we need to optimize that part yet.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)