Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 12-04-2002, 05:07 PM   #1
Senior Member
Registered: Jul 2002
Location: New York
Distribution: Slackware
Posts: 1,358

Rep: Reputation: 45
creating a bitmap

I have a set of data that I want converted into a bitmap. How do I go about and do that?
So I got and 2d matrix: A[][] = {1,0,1,1,1,0,.......}; I want to make a monochrome bitmap out of this with 1 being a black pixel and 0 a white one.
I'm programing in c++. But if someone knows how to do this with matlab ....

Last edited by qanopus; 12-04-2002 at 05:08 PM.
Old 12-04-2002, 06:57 PM   #2
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913Reputation: 913
Seems quite easy, really ...

man -k bitmap | grep "(5)"
man pbm
man -k pbm | grep ("3")


Last edited by Tinkster; 12-04-2002 at 07:00 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
bitmap indexes in c++ crapodino Programming 2 11-27-2005 08:43 PM
Bitmap fonts, but not Helvetica mschutte Debian 2 09-18-2005 11:41 AM
Convert to 16 bit bitmap static_drc Linux - Software 2 06-29-2005 02:21 PM
Displaying Bitmap hylke Programming 14 09-02-2004 02:59 PM
illegal bitmap block(s) HOHCEHC Linux - General 0 05-04-2004 10:07 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:28 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration