Any Chance to Use Bitmaps - Printable Version +- Atozed Forums (https://www.atozed.com/forums) +-- Forum: COSMOS Projects (https://www.atozed.com/forums/forum-19.html) +--- Forum: COSMOS (https://www.atozed.com/forums/forum-20.html) +---- Forum: COSMOS General Discussion (https://www.atozed.com/forums/forum-21.html) +---- Thread: Any Chance to Use Bitmaps (/thread-246.html) |
Any Chance to Use Bitmaps - kernel32 - 05-24-2018 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, RE: Any Chance to Use Bitmaps - fanoI - 05-24-2018 Hello, yes Cosmos does support bitmaps: https://github.com/CosmosOS/Cosmos/blob/master/Demos/CosmosGraphicSubsystem/Kernel.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/master/source/Cosmos.System2/Graphics/Bitmap.cs#L32. Please notice that too big Bitmaps will be slow to be drawn on screen we need to optimize that part yet. |