Converting a byte[] to a bitmap

S

Sauny

Hi all,

Ok, I am not the best C programmer in the world but am looking to
convert a byte array which contains pixel information to a bitmap.

basically i have a screen say 320x280 leading to a 89600 element byte
array eah element specifying the pixel color. I need to convert this
into a Bitmap tho. Does anyone have any ideas on how to do this or
even if there is something already around that can do this for me?

Tahnk you

Dave
 
V

Vladimir S. Oka

Sauny opined:
Hi all,

Ok, I am not the best C programmer in the world but am looking to
convert a byte array which contains pixel information to a bitmap.

basically i have a screen say 320x280 leading to a 89600 element byte
array eah element specifying the pixel color. I need to convert this
into a Bitmap tho. Does anyone have any ideas on how to do this or
even if there is something already around that can do this for me?

The way I read it, this is not a C question.

Try to find the format of Bitmaps you mention (I'd guess it's BMP
format you're after). Google for it.

--
There are no threads in a.b.p.erotica, so there's no gain in using a
threaded news reader.
(Unknown source)

<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top