VGAScreen Image Drawing Solved!

Hi i've found a way to convert a .bmp file to code needed to draw using
Cosmos.Hardware (tested on MS4) http://yapps.tk/COSMOS/BMP_Code.rar (this is my site) it's a console app made in microsoft visual c# 2010 express edition. hope it's understandable for you guys! (it takes about
5 minuates at maxumin) it convert at maxamin) it converts to 320x200x8 resulotion only! (warning a 320x200 sixed image is 7mb in a txt file so be warned! it also take a while to compile)

Hi i've found a way to convert a .bmp file to code needed to draw in
Cosmos.Hardware (tested on MS4)
http://yapps.tk/COSMOS/BMP_Code.exe (this is my site :) ) it's a console app made in microsoft visual c# 2011 express edition. hope its understandable for you guys! (it takes about 5 minutes to convert at maxumin) it converts to 320x200x8 resulotion only!
(warning a 320x200 sixed image is 7mbs in a txt file SO THATS ALOT OF CODE!)

it works by seting a VGAScreen.SetPaletteEntry(99999,
<its rgb of the curent pixel>); and then seting the pixel to "999999" colour

Hi i've found a way to convert a .bmp file to code needed to draw in
Cosmos.Hardware (tested on MS4)
http://yapps.tk/COSMOS/BMP_Code.exe (this is my site :) ) it's a console app made in microsoft visual c# 2011 express edition. hope its understandable for you guys! (it takes about 5 minutes to convert at maxumin) it converts to 320x200x8 resulotion only!
(warning a 320x200 sixed image is 7mbs in a txt file SO THATS ALOT OF CODE!)

it works by seting a VGAScreen.SetPaletteEntry(99999,
<its rgb of the curent pixel>); and then seting the pixel to "999999" colour

probably is. I just tested this. it works well. It could be a bit more user friendly. and forcing the C:/ drive is not good. suppose a user has an F:/ drive? anyway this did work. maybe you could give the source? considering you gave the exe which is allowing
everyone to use this anyway.

Hi i've found a way to convert a .bmp file to code needed to draw in
Cosmos.Hardware (tested on MS4)
http://yapps.tk/COSMOS/BMP_Code.exe (this is my site :) ) it's a console app made in microsoft visual c# 2011 express edition. hope its understandable for you guys! (it takes about 5 minutes to convert at maxumin) it converts to 320x200x8 resulotion only!
(warning a 320x200 sixed image is 7mbs in a txt file SO THATS ALOT OF CODE!)

it works by seting a VGAScreen.SetPaletteEntry(99999,
<its rgb of the curent pixel>); and then seting the pixel to "999999" colour

As a note, you'd probably be better off setting it up in a way that you can load directly from a byte[] rather than pre-processing it, if you did set it up to do this, then I'd gladly make it the first image format that Orvid.Graphics fully supports, I wouldn't
think it would be to hard (been meaning to implement an image driver anyways :P, also been meaning to add animation support, but that will have to wait until I get back to where I normally am, and have my usual dev-machine, because I forgot to commit some
of my code, which is the basis for the shape-based drawing mechanism. (Also allows for heavy caching :P)

Also, as a note for speed in your current mechanism, you call bmp.GetPixel(x,y) 3 times per pixel, I'd suggest creating a color variable outside of both loops, and assigning to it once per pixel, then pulling the RGB values from there. The reason the variable
is created outside of the loops is to avoid GC thrashing, because if it was in the x loc loop (which is already in the y loc loop), it would have to alloc, and dispose of the variable 64k times per image. The reason I mention bmp.GetPixel, is because
it uses native interop to achieve it's function, and that can be slow (It's the major cause of the slowness in my TTF to OPFF converter).

I would also suggest writing to disk as you convert it, rather than keeping it in memory, as you then have to iterate through the array you keep it in in your 2nd conversion method (your string appending from your first try was only slightly worse :P).

I have tempory removed the source code but ill put it back up soon. i am playing around with arrays and other ideas. when i put the source code up maybe some of you guys can give me some code samples to try but im very hapy with my Release 2 so far.
pls add a discusion on my project to continue this converstation.