By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,946 Members | 744 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,946 IT Pros & Developers. It's quick & easy.

Converting a byte[] to a bitmap

P: n/a
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

Apr 11 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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>

Apr 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.